Mercurial > libavcodec.hg
changeset 11562:66f3d2ff88b7 libavcodec
H264: Copy h264dsp when creating new slice threads
Fixes slice multithreading (broken in r22565)
Fixes issue1815
author | astrange |
---|---|
date | Wed, 31 Mar 2010 03:55:42 +0000 |
parents | dcf8221ed29f |
children | 5111783be6ad |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Tue Mar 30 23:31:16 2010 +0000 +++ b/h264.c Wed Mar 31 03:55:42 2010 +0000 @@ -1843,6 +1843,7 @@ 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);