提交 fcb4228c 编写于 作者: B Baptiste Coudurier

skip empty data packets in flv, fix input.flv

Originally committed as revision 18306 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 60c703ac
......@@ -439,6 +439,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
/* skip empty data packets */
if (!size)
return AVERROR(EAGAIN);
ret= av_get_packet(s->pb, pkt, size);
if (ret <= 0) {
return AVERROR(EIO);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册