Browse Source

avcodec/shorten: fix decoding of files with number of samples lower than max_frame_size

Note that support of very big block sizes is not currently supported at all due
too flawed logic in decoder.

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

+ 4
- 2
libavcodec/shorten.c View File

@@ -476,8 +476,10 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
if (!s->got_header) {
if ((ret = read_header(s)) < 0)
return ret;
*got_frame_ptr = 0;
goto finish_frame;
if (avpkt->size) {
*got_frame_ptr = 0;
goto finish_frame;
}
}

/* if quit command was read previously, don't decode anything */


Loading…
Cancel
Save