Browse Source

avcodec/shorten: fix decoding of last frame

Previously it would be always discarded.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 9 years ago
parent
commit
966d43d778
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/shorten.c

+ 1
- 3
libavcodec/shorten.c View File

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


Loading…
Cancel
Save