From c62c07d3d7d204527bfa991bac1204cbb593747b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 23 Feb 2004 20:56:56 +0000 Subject: multithreaded mpeg2 decoding Originally committed as revision 2810 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/error_resilience.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/error_resilience.c') diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 5067a24..c6b10a7 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -652,7 +652,7 @@ void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int en s->error_status_table[start_xy] |= VP_START; - if(start_xy > 0){ + if(start_xy > 0 && s->avctx->thread_count <= 1){ int prev_status= s->error_status_table[ s->mb_index2xy[start_i - 1] ]; prev_status &= ~ VP_START; -- cgit v1.1