codecparsers: mpeg2: don't mess the StartCode only packets
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 1 Jun 2018 02:21:58 +0000 (18:21 -0800)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 1 Jun 2018 06:17:09 +0000 (08:17 +0200)
commit700d6782cee67d7d9f42bbdad33fbba55cc9ea33
tree31e01dd7c61c884e5f7e10481054dba6725fbc19
parent3f2314a1a917ba38f10960e5edbea2485edcc7b7
codecparsers: mpeg2: don't mess the StartCode only packets

It is completely legal to have packets with zero sizes.
Zero-sized packet indicates header with only Start Code.
One eg: is user data packet. The patch allows having
GstMpegVideoPacket with zero sizes.

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