aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-04-20 15:25:58 -0300
committerJames Almer <jamrial@gmail.com>2020-05-03 18:49:01 -0300
commit31c523469a290c6a9b6d5c1d9279b4d74e9518f2 (patch)
tree5530646639a30364002fc9b08a82ef03f5070797 /libavcodec
parenta59b535af4df396fcad41eea3462b206e6ef3fbc (diff)
downloadffmpeg-31c523469a290c6a9b6d5c1d9279b4d74e9518f2.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)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cbs_h265_syntax_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c
index 15114548c6..836bb6db58 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;
}