Commit e4c8d7d5 authored by James Almer's avatar James Almer

avcodec/cbs_h265: fix writing extension_data bits

We only care about the right most bit.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
(cherry picked from commit 38d1815c)
parent 293c3898
Pipeline #370 failed with stages
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment