mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
metasound & twinvqdec: return the number of read bytes from read_bitstream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f5dae4894d
commit
cbb7f56dfe
@ -226,7 +226,7 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return (get_bits_count(&gb) + 7) / 8;
|
||||
}
|
||||
|
||||
typedef struct MetasoundProps {
|
||||
|
@ -312,7 +312,7 @@ static int twinvq_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return (get_bits_count(&gb) + 7) / 8;
|
||||
}
|
||||
|
||||
static av_cold int twinvq_decode_init(AVCodecContext *avctx)
|
||||
|
Loading…
Reference in New Issue
Block a user