diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-03 13:06:40 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-07 11:55:57 +0100 |
commit | 72a822b975a2e98e856a7e7fd6b0deec326f4df4 (patch) | |
tree | 6d36c151682330c04194770bd4a41e25d8a8dd23 /libavformat | |
parent | 035d2cc46368a7cdbf2585acdb1a83885706e43f (diff) | |
download | ffmpeg-72a822b975a2e98e856a7e7fd6b0deec326f4df4.tar.gz |
avformat/takdec: Don't initialize get_bits context to read one value
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/takdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/takdec.c b/libavformat/takdec.c index bb256e1190..cc1f049512 100644 --- a/libavformat/takdec.c +++ b/libavformat/takdec.c @@ -171,9 +171,8 @@ static int tak_read_header(AVFormatContext *s) get_bits(&gb, TAK_LAST_FRAME_SIZE_BITS); av_freep(&buffer); } else if (type == TAK_METADATA_ENCODER) { - init_get_bits8(&gb, buffer, size - 3); av_log(s, AV_LOG_VERBOSE, "encoder version: %0X\n", - get_bits_long(&gb, TAK_ENCODER_VERSION_BITS)); + AV_RL24(buffer)); av_freep(&buffer); } } |