[FFmpeg-cvslog] avcodec/cbs_h265: fix writing extension_data bits
James Almer
git at videolan.org
Mon May 4 00:56:59 EEST 2020
ffmpeg | branch: release/4.2 | James Almer <jamrial at gmail.com> | Mon Apr 20 15:25:58 2020 -0300| [31c523469a290c6a9b6d5c1d9279b4d74e9518f2] | committer: James Almer
avcodec/cbs_h265: fix writing extension_data bits
We only care about the right most bit.
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 38d1815cc65dd447de80760895ee008cfc9a0091)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31c523469a290c6a9b6d5c1d9279b4d74e9518f2
---
libavcodec/cbs_h265_syntax_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the ffmpeg-cvslog
mailing list