diff options
author | Matej Knopp <matej.knopp@gmail.com> | 2013-07-28 18:28:30 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-29 08:41:50 +0200 |
commit | bcff370c430885a9efb6013b7278a846516b7314 (patch) | |
tree | 7f2bc42291a05f04bdc7d88e224e5df795ee6d56 /gst | |
parent | 584ac5f79c0994d8f729122d35d7fc0aa1b70d3f (diff) | |
download | gstreamer-plugins-bad-bcff370c430885a9efb6013b7278a846516b7314.tar.gz |
mpegvideoparse: do not update caps when bitrate changes
https://bugzilla.gnome.org/show_bug.cgi?id=705035
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gstmpegvideoparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 2293f8144..073a33042 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -284,12 +284,12 @@ gst_mpegv_parse_process_config (GstMpegvParse * mpvparse, GstMapInfo * info, used for codec private data */ data_with_prefix = (guint8 *) packet.data + packet.offset - 4; - /* only do stuff if something new; only compare first 11 bytes, changes in - quantiser matrix doesn't matter here. Also changing the matrices in - codec_data seems to cause problem with decoders */ + /* only do stuff if something new; only compare first 8 bytes, changes in + quantiser matrix or bitrate don't matter here. Also changing the + matrices in codec_data seems to cause problem with decoders */ if (mpvparse->config && gst_buffer_memcmp (mpvparse->config, 0, data_with_prefix, MIN (size, - 11)) == 0) { + 8)) == 0) { return TRUE; } |