diff options
author | Matej Knopp <matej.knopp@gmail.com> | 2013-05-01 17:19:07 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-05-03 12:52:18 +0200 |
commit | 946ffd0da5a7bd9b004f02e306e061d1b7f52b4b (patch) | |
tree | 96daa7a7c6f895a50eab88ca6189b1595ae3fe88 /gst | |
parent | 70e208d08e0330112260b1ea3503f50e203977a8 (diff) | |
download | gstreamer-plugins-bad-946ffd0da5a7bd9b004f02e306e061d1b7f52b4b.tar.gz |
mpegvideoparse: don't compare buffer size when checking whether to update caps
https://bugzilla.gnome.org/show_bug.cgi?id=699398
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gstmpegvideoparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 375c4cfc4..dfb0f415b 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -287,7 +287,7 @@ gst_mpegv_parse_process_config (GstMpegvParse * mpvparse, GstBuffer * buf, /* 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 */ - if (mpvparse->config && size == gst_buffer_get_size (mpvparse->config) && + if (mpvparse->config && gst_buffer_memcmp (mpvparse->config, 0, data_with_prefix, MIN (size, 11)) == 0) { gst_buffer_unmap (buf, &map); |