diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-21 09:13:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-24 18:28:36 +0200 |
commit | 48a0cd06e38f100115357ca34716e227f3ad5e03 (patch) | |
tree | a64ffe97d90cf11663549fd490d2e3cb610d9e3f | |
parent | 0bcca1cb4009e9ca126864ec6f44ae98105afc77 (diff) | |
download | ffmpeg-48a0cd06e38f100115357ca34716e227f3ad5e03.tar.gz |
avcodec/hevc_ps: Don't use show_bits_long() unnecessarily
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/hevc_ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 764c4849ee..a955f585d9 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -659,7 +659,7 @@ static void decode_vui(GetBitContext *gb, AVCodecContext *avctx, // Backup context in case an alternate header is detected memcpy(&backup, gb, sizeof(backup)); memcpy(&backup_vui, vui, sizeof(backup_vui)); - if (get_bits_left(gb) >= 68 && show_bits_long(gb, 21) == 0x100000) { + if (get_bits_left(gb) >= 68 && show_bits(gb, 21) == 0x100000) { vui->default_display_window_flag = 0; av_log(avctx, AV_LOG_WARNING, "Invalid default display window\n"); } else |