Mercurial > libavformat.hg
changeset 6269:b5afd13d8352 libavformat
avidec : Free packet if dv_produce_packet fails.
author | jai_menon |
---|---|
date | Sat, 17 Jul 2010 05:40:18 +0000 |
parents | 68c7733519ca |
children | b6f0ef0c9d3a |
files | avidec.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Sat Jul 17 05:26:30 2010 +0000 +++ b/avidec.c Sat Jul 17 05:40:18 2010 +0000 @@ -808,6 +808,8 @@ 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;