提交 bbfb2c80 编写于 作者: J Jai Menon

avidec : Free packet if dv_produce_packet fails.

Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 7939d0ed
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册