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
}
}
- return off++; /* Take the following 1 into account */
+ return off + 1; /* Take the following 1 into account */
}
/**
CHECK_REMAINING (&br, markersize);
- if (gst_bit_reader_get_bits_uint32_unchecked (&br, markersize + 1) != 0x01)
+ if (gst_bit_reader_get_bits_uint32_unchecked (&br, markersize) != 0x01)
goto failed;
if (vol->shape != GST_MPEG4_RECTANGULAR) {