Browse Source

avidec : Free packet if dv_produce_packet fails.

Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Jai Menon 15 years ago
parent
commit
bbfb2c8077
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/avidec.c

+ 2
- 0
libavformat/avidec.c View File

@@ -808,6 +808,8 @@ resync:
pkt->data, pkt->size); pkt->data, pkt->size);
pkt->destruct = dstr; pkt->destruct = dstr;
pkt->flags |= AV_PKT_FLAG_KEY; pkt->flags |= AV_PKT_FLAG_KEY;
if (size < 0)
av_free_packet(pkt);
} else { } else {
/* XXX: How to handle B-frames in AVI? */ /* XXX: How to handle B-frames in AVI? */
pkt->dts = ast->frame_offset; pkt->dts = ast->frame_offset;


Loading…
Cancel
Save