mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-23 09:45:06 +02:00
avidec : Free packet if dv_produce_packet fails.
Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7939d0edce
commit
bbfb2c8077
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user