mpegvideo: clear overread in clear_context
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 14 Nov 2015 21:46:46 +0000 (22:46 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Nov 2015 00:37:13 +0000 (01:37 +0100)
commit725d7fb2c608f8f4712fc13750455eec47b0cc4a
tree2fc410cb9e0c08a43c68b5e99e36df8bc915c28b
parent258584cfaf8684dac54b997f112c62783481bd7a
mpegvideo: clear overread in clear_context

Otherwise the h263p decoder can try to copy overread bytes, even though
buffer is NULL.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 6a69a175e7b5c5393528ed0f5753e41573fa0df2)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/mpegvideo.c