mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/shorten: remove useless if condition and comment, reindent
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a4790e1890
commit
c18fdc8692
|
@ -445,7 +445,6 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
|
|||
}
|
||||
|
||||
/* append current packet data to bitstream buffer */
|
||||
if (1 && s->max_framesize) { //FIXME truncated
|
||||
buf_size = FFMIN(buf_size, s->max_framesize - s->bitstream_size);
|
||||
input_buf_size = buf_size;
|
||||
|
||||
|
@ -468,7 +467,6 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
|
|||
*got_frame_ptr = 0;
|
||||
return input_buf_size;
|
||||
}
|
||||
}
|
||||
/* init and position bitstream reader */
|
||||
if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue