aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-14 16:18:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-14 16:18:29 +0000
commit54347c2f51a9aae0f45a55069513ffb340014e10 (patch)
tree12d45afddbfec67b355dd87aa33ec18dce49afa4 /libavcodec/svq3.c
parent0e3510a31ffd3c383dcbcd9debb19affa350e06c (diff)
downloadffmpeg-54347c2f51a9aae0f45a55069513ffb340014e10.tar.gz
Fix infinite loop at EOF.
Originally committed as revision 14231 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 6333d309bf..c007f49bdc 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -835,6 +835,7 @@ static int svq3_decode_frame (AVCodecContext *avctx,
if (buf_size == 0) {
if (s->next_picture_ptr && !s->low_delay) {
*(AVFrame *) data = *(AVFrame *) &s->next_picture;
+ s->next_picture_ptr= NULL;
*data_size = sizeof(AVFrame);
}
return 0;