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;