]> git.sesse.net Git - ffmpeg/commitdiff
h264: Copy h264chroma dsp context to slice thread copies
authorMartin Storsjö <martin@martin.st>
Mon, 11 Feb 2013 18:27:50 +0000 (20:27 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 11 Feb 2013 19:12:21 +0000 (21:12 +0200)
This fixes slice threading which seems to have been broken since
79dad2a93.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264.c

index 464c40338c51d0b2d28a39cca0c0f7ab19ff10f4..542070be938436f505216528c72e9777fe3293e2 100644 (file)
@@ -2569,6 +2569,7 @@ static int h264_slice_header_init(H264Context *h, int reinit)
             memset(&c->s + 1, 0, sizeof(H264Context) - sizeof(MpegEncContext));
             c->h264dsp     = h->h264dsp;
             c->h264qpel    = h->h264qpel;
+            c->h264chroma  = h->h264chroma;
             c->sps         = h->sps;
             c->pps         = h->pps;
             c->pixel_shift = h->pixel_shift;