avcodec/shorten: fix decoding of last frame
authorPaul B Mahol <onemda@gmail.com>
Fri, 8 Apr 2016 08:35:11 +0000 (10:35 +0200)
committerPaul B Mahol <onemda@gmail.com>
Fri, 8 Apr 2016 20:32:32 +0000 (22:32 +0200)
Previously it would be always discarded.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/shorten.c

index 1d22a24..7973c95 100644 (file)
@@ -543,10 +543,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
                 s->got_quit_command = 1;
                 break;
             }
-            if (cmd == FN_BLOCKSIZE || cmd == FN_QUIT) {
-                *got_frame_ptr = 0;
+            if (cmd == FN_QUIT)
                 break;
-            }
         } else {
             /* process audio command */
             int residual_size = 0;