mpegvideoparse: don't compare buffer size when checking whether to update caps
authorMatej Knopp <matej.knopp@gmail.com>
Wed, 1 May 2013 15:19:07 +0000 (17:19 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 3 May 2013 10:52:18 +0000 (12:52 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=699398

gst/videoparsers/gstmpegvideoparse.c

index 375c4cf..dfb0f41 100644 (file)
@@ -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);