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:52:03 -0300
commite4c8d7d5da38e2a8bafb8064413c4027a258f688 (patch)
tree13e6b6bf0318ff354703bcdfcb08b6ef36a768fd /libavcodec
parent293c389812929f268ac62888e36c6a7735bc439f (diff)
downloadffmpeg-e4c8d7d5da38e2a8bafb8064413c4027a258f688.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 140c827c9d..d1ccebcf99 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);
+ xu(1, extension_data, current->data[k / 8] >> (7 - k % 8) & 1, 0, 1);
#endif
return 0;
}