You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/fic: use init_get_bits8()
This commit is contained in:
@@ -173,9 +173,11 @@ static int fic_decode_slice(AVCodecContext *avctx, void *tdata)
|
|||||||
int slice_h = tctx->slice_h;
|
int slice_h = tctx->slice_h;
|
||||||
int src_size = tctx->src_size;
|
int src_size = tctx->src_size;
|
||||||
int y_off = tctx->y_off;
|
int y_off = tctx->y_off;
|
||||||
int x, y, p;
|
int x, y, p, ret;
|
||||||
|
|
||||||
init_get_bits(&gb, src, src_size * 8);
|
ret = init_get_bits8(&gb, src, src_size);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
for (p = 0; p < 3; p++) {
|
for (p = 0; p < 3; p++) {
|
||||||
int stride = ctx->frame->linesize[p];
|
int stride = ctx->frame->linesize[p];
|
||||||
|
Reference in New Issue
Block a user