diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-01-13 21:46:44 -0800 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-01-15 22:19:07 +0100 |
commit | c3b67720f913d0d6be8369777b4cae86a6417bd1 (patch) | |
tree | 32b4d46ec2335e89c33c4f4626bd2d29677400e6 /configure | |
parent | 72eca26bf95dd58ce05b9dbf9b1b3694f496daf6 (diff) | |
download | ffmpeg-c3b67720f913d0d6be8369777b4cae86a6417bd1.tar.gz |
h264: don't clobber mmco opcode tables for non-first slice headers.
Clobbering these tables will temporarily clobber the template used
as a basis for other threads to start decoding from. If the other
decoding thread updates from the template right at that moment,
subsequent threads will get invalid (or, usually, none at all) mmco
tables. This leads to invalid reference lists and subsequent decode
failures.
Therefore, instead, decode the mmco tables only for the first slice in
a field or frame. For other slices, decode the bits and ensure they
are identical to the mmco tables in the first slice, but don't ever
clobber the context state. This prevents other threads from using a
clobbered/invalid template as starting point for decoding, and thus
fixes decoding in these cases.
This fixes occasional (~1%) failures of h264-conformance-mr1_bt_a with
frame-multithreading enabled.
(cherry picked from commit bad446e251405dc250c3cbee199072e083a1e4b9)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions