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 Mar 2015 00:52:51 +0000 (01:52 +0100)
commit84341627d795a330cd9edf291b6d62e5cea383e0
tree7b6a00bbdc1e68d230428821670f24bac06210f2
parent4f694182e0c896c8bc7b11225c6caab19ba86e1d
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