h264: initialize H264Context.avctx in init_thread_copy
authorAnton Khirnov <anton@khirnov.net>
Thu, 12 Feb 2015 12:06:49 +0000 (13:06 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Feb 2015 11:01:01 +0000 (12:01 +0100)
commitd005972995ee9b13ca6573a396cdb70808e12814
treeee407e1063264d021477547b00ca46aaa358df31
parent94ebfef2fb69f9bc66dc17e533c5d25d68a37924
h264: initialize H264Context.avctx in init_thread_copy

This prevents using a wrong (first thread's) AVCodecContext if decoding
a frame in the first pass over all threads fails.
(cherry picked from commit a06b0b1295c51d100101e0ca0434e199ad6de6b5)

Conflicts:

libavcodec/h264.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c