mpeg2: fix memory leak of empty packets.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 13:40:49 +0000 (15:40 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 16 Nov 2012 15:49:15 +0000 (16:49 +0100)
commit431e3513eca7ac401c23b4bfdd81d678f1861473
tree2ca07e6eb6d97cd18dc75c0f508607602f87e1d2
parent0ede05c7a961c1295ef782f71712ac694f7e733e
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).
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c