ffmdec: reset packet_end in case of failure
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 2 Jan 2016 15:27:02 +0000 (16:27 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 3 Jan 2016 20:13:01 +0000 (21:13 +0100)
commit40eb2531b279abe008012c5c2c292552d3e62449
tree4684dc84d09824658303f24f74304ed755e65fb8
parent43ff4aed26cba2cce230972add631ab938d33b30
ffmdec: reset packet_end in case of failure

This fixes segmentation faults caused by passing a packet_ptr of NULL to
memcpy.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/ffmdec.c