avcodec/dpx_parser: fix flushing end out
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 29 May 2014 15:22:26 +0000 (17:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 29 May 2014 15:22:26 +0000 (17:22 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dpx_parser.c

index 6c6d502..5f29eee 100644 (file)
@@ -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++) {