Commit c18fdc86 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/shorten: remove useless if condition and comment, reindent

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent a4790e18
...@@ -445,7 +445,6 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, ...@@ -445,7 +445,6 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
} }
/* append current packet data to bitstream buffer */ /* 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); buf_size = FFMIN(buf_size, s->max_framesize - s->bitstream_size);
input_buf_size = buf_size; input_buf_size = buf_size;
...@@ -468,7 +467,6 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, ...@@ -468,7 +467,6 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
*got_frame_ptr = 0; *got_frame_ptr = 0;
return input_buf_size; return input_buf_size;
} }
}
/* init and position bitstream reader */ /* init and position bitstream reader */
if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0) if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment