codecparsers: mpeg4: actually return full number of bits of resync marker
authorLuis de Bethencourt <luis.bg@samsung.com>
Wed, 29 Oct 2014 15:03:04 +0000 (15:03 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 13 Jun 2015 17:03:11 +0000 (18:03 +0100)
commit417db39d0d61b8944d9ddd7f7f8f836c58260206
treede07832174e25089a51cace9664fd5d7079b90aa
parentb14fb383eddec5aa086524ba39ade684b29bd217
codecparsers: mpeg4: actually return full number of bits of resync marker

Switch the increment of markersize from when it is used to when it is
returned from compute_resync_marker_size.

This also makes the CHECK_REMAINING in gst_mpeg4_parse_video_packet_header
check for the actually required number of bits now and not one too few.

https://bugzilla.gnome.org/show_bug.cgi?id=739345
gst-libs/gst/codecparsers/gstmpeg4parser.c