diff --git a/libavcodec/dpx_parser.c b/libavcodec/dpx_parser.c index 6c6d502d7e..5f29eee033 100644 --- a/libavcodec/dpx_parser.c +++ b/libavcodec/dpx_parser.c @@ -48,7 +48,7 @@ static int dpx_parse(AVCodecParserContext *s, AVCodecContext *avctx, *poutbuf_size = 0; if (buf_size == 0) - return 0; + next = 0; if (!d->pc.frame_start_found) { for (; i < buf_size; i++) {