diff options
author | Jai Menon <jmenon86@gmail.com> | 2010-07-17 05:40:18 +0000 |
---|---|---|
committer | Jai Menon <jmenon86@gmail.com> | 2010-07-17 05:40:18 +0000 |
commit | bbfb2c8077d0b865135c50d3f4aa40a42aefb9ac (patch) | |
tree | 662ecdccb5a921839d2c32291ca57e20bed73d80 | |
parent | 7939d0edce490589ce66ccfa21dac0e75a2c2f1c (diff) | |
download | ffmpeg-bbfb2c8077d0b865135c50d3f4aa40a42aefb9ac.tar.gz |
avidec : Free packet if dv_produce_packet fails.
Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 058acd5263..05cfd98cbe 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -808,6 +808,8 @@ resync: pkt->data, pkt->size); pkt->destruct = dstr; pkt->flags |= AV_PKT_FLAG_KEY; + if (size < 0) + av_free_packet(pkt); } else { /* XXX: How to handle B-frames in AVI? */ pkt->dts = ast->frame_offset; |