提交 54347c2f 编写于 作者: M Michael Niedermayer

Fix infinite loop at EOF.

Originally committed as revision 14231 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 0e3510a3
...@@ -835,6 +835,7 @@ static int svq3_decode_frame (AVCodecContext *avctx, ...@@ -835,6 +835,7 @@ static int svq3_decode_frame (AVCodecContext *avctx,
if (buf_size == 0) { if (buf_size == 0) {
if (s->next_picture_ptr && !s->low_delay) { if (s->next_picture_ptr && !s->low_delay) {
*(AVFrame *) data = *(AVFrame *) &s->next_picture; *(AVFrame *) data = *(AVFrame *) &s->next_picture;
s->next_picture_ptr= NULL;
*data_size = sizeof(AVFrame); *data_size = sizeof(AVFrame);
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册