diff options
author | James Almer <jamrial@gmail.com> | 2020-04-20 15:25:58 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-04-30 16:28:01 -0300 |
commit | 38d1815cc65dd447de80760895ee008cfc9a0091 (patch) | |
tree | f56c353a612e9807033ddd5e8e98138b693acfcc /libavcodec/cbs_h265_syntax_template.c | |
parent | 2a9d62356152d4ef079416101664f26d2562c681 (diff) | |
download | ffmpeg-38d1815cc65dd447de80760895ee008cfc9a0091.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>
Diffstat (limited to 'libavcodec/cbs_h265_syntax_template.c')
-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 5f5531944c..0696eeeb9e 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; } |