h264_slice: Copy the value of x264_build before calling h264_slice_header_init during...
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 8 Oct 2018 15:33:26 +0000 (11:33 -0400)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 9 Oct 2018 14:05:44 +0000 (15:05 +0100)
commitb1504e7796a420c8748a2dcb12a2b780ecf42c04
tree54c7f9575d23dfdda3f512be20867077c5bb4f2a
parente10fe34e7c6031baa07fb3bad5c284b2911f501b
h264_slice: Copy the value of x264_build before calling h264_slice_header_init during thread init

If we don't copy this value first, it is seen as 0 by h264_slice_header_init,
due to zero-allocation of the new context, triggering an old hack that
multiplied the denominator by 2 for files produced by old x264 versions, but
only if more than one thread was used.

Fixes #7475 and #7083.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/h264_slice.c