mpeg2: fix memory leak of empty packets.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 13:40:49 +0000 (15:40 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 5 Nov 2012 09:48:09 +0000 (11:48 +0200)
commit1f5f8afda9bd8618afc7c5aaaa483219f1952d9a
treea8348e514ffd39418bba2b72f4fa721588039415
parent653b36c5e3f5f36954885888782d0af0819b762b
mpeg2: fix memory leak of empty packets.

Fix memory leakage of empty packets, i.e. packets that only contain
the start code prefix. In particular, free empty user-data packets.

Besides, the codec parser will already fail gracefully if the packet
to parse does not have the minimum required size. So, we can also
completely drop the block of code that used to handle packets of size 4
(including the start code).

Conflicts:
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c