]> git.sesse.net Git - ffmpeg/commitdiff
h264: fix cur_chroma_format_idc with slice multithreading.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Nov 2011 04:42:18 +0000 (05:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Nov 2011 04:42:18 +0000 (05:42 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index e3d9449d12e49d7b411147173db286cfb8b42569..c389f96c1034c84041ca38dae02464789b95f55a 100644 (file)
@@ -2846,6 +2846,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
                 c->sps = h->sps;
                 c->pps = h->pps;
                 c->pixel_shift = h->pixel_shift;
+                c->cur_chroma_format_idc = h->cur_chroma_format_idc;
                 init_scan_tables(c);
                 clone_tables(c, h, i);
             }