[FFmpeg-cvslog] r22740 - trunk/libavcodec/h264.c

astrange subversion
Wed Mar 31 05:55:43 CEST 2010


Author: astrange
Date: Wed Mar 31 05:55:42 2010
New Revision: 22740

Log:
H264: Copy h264dsp when creating new slice threads

Fixes slice multithreading (broken in r22565)
Fixes issue1815

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Wed Mar 31 02:41:31 2010	(r22739)
+++ trunk/libavcodec/h264.c	Wed Mar 31 05:55:42 2010	(r22740)
@@ -1843,6 +1843,7 @@ static int decode_slice_header(H264Conte
             c = h->thread_context[i] = av_malloc(sizeof(H264Context));
             memcpy(c, h->s.thread_context[i], sizeof(MpegEncContext));
             memset(&c->s + 1, 0, sizeof(H264Context) - sizeof(MpegEncContext));
+            c->h264dsp = h->h264dsp;
             c->sps = h->sps;
             c->pps = h->pps;
             init_scan_tables(c);



More information about the ffmpeg-cvslog mailing list