h264: set Picture.owner2 to the current thread
authorJanne Grunau <janne-libav@jannau.net>
Sun, 25 Nov 2012 18:42:16 +0000 (19:42 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 27 Nov 2012 11:26:33 +0000 (12:26 +0100)
commitd5e83122bdc39b9c0278b9b4f6c49baa99223bd6
tree05d9c28c33b90ba514ff5f916e3bc942c2d7e457
parent6e5cdf26281945ddea3aaf5eca4d127791f23ca8
h264: set Picture.owner2 to the current thread

This does not seem to have an effect currently. Fate-h264 passes with
THREADS=1..16 and both threading types as before. It fixes however a
segfault during error resilience with my adaptive-frame-mt patchset.
A picture in use during error resilience gets realloced in another
thread in the fuzzed sample sample_varPAR.avi_s226019.
libavcodec/h264.c
libavcodec/mpegvideo.c