提交 22a7e19b 编写于 作者: R Reimar Döffinger

Make rawvideo_read_packet return partial frames.

This is consistent with other demuxers and also fixes a memleak (memory
allocated for partial frame data was leaked).

Originally committed as revision 20130 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 8cb724c5
......@@ -171,7 +171,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->dts= pkt->pos / packet_size;
pkt->stream_index = 0;
if (ret != packet_size)
if (ret <= 0)
return AVERROR(EIO);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册