diff options
author | James Almer <jamrial@gmail.com> | 2020-04-20 15:25:58 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-05-03 18:50:22 -0300 |
commit | 6376b6b00ba3d4705de077a0b6f6de3aefe33ff4 (patch) | |
tree | 14b49aa61b1c129da9af4985ee6a9009a66b128a | |
parent | 41b03de299307f3683dc0ed63cea2e14fb158ef8 (diff) | |
download | ffmpeg-6376b6b00ba3d4705de077a0b6f6de3aefe33ff4.tar.gz |
avcodec/cbs_h265: fix writing extension_data bits
We only care about the right most bit.
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 38d1815cc65dd447de80760895ee008cfc9a0091)
-rw-r--r-- | libavcodec/cbs_h265_syntax_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c index e43f3caf99..52e45aa6db 100644 --- a/libavcodec/cbs_h265_syntax_template.c +++ b/libavcodec/cbs_h265_syntax_template.c @@ -80,7 +80,7 @@ static int FUNC(extension_data)(CodedBitstreamContext *ctx, RWContext *rw, } #else for (k = 0; k < current->bit_length; k++) - xu(1, extension_data, current->data[k / 8] >> (7 - k % 8), 0, 1, 0); + xu(1, extension_data, current->data[k / 8] >> (7 - k % 8) & 1, 0, 1, 0); #endif return 0; } |