Commit 13d1512c authored by Michael Niedermayer's avatar Michael Niedermayer

10l (vismv fix)

Originally committed as revision 2949 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a3c22fbc
...@@ -1167,10 +1167,11 @@ static int stream_component_open(VideoState *is, int stream_index) ...@@ -1167,10 +1167,11 @@ static int stream_component_open(VideoState *is, int stream_index)
} }
codec = avcodec_find_decoder(enc->codec_id); codec = avcodec_find_decoder(enc->codec_id);
enc->debug_mv = debug_mv;
enc->debug = debug;
if (!codec || if (!codec ||
avcodec_open(enc, codec) < 0) avcodec_open(enc, codec) < 0)
return -1; return -1;
enc->debug = debug;
#if defined(HAVE_PTHREADS) || defined(HAVE_W32THREADS) #if defined(HAVE_PTHREADS) || defined(HAVE_W32THREADS)
if(thread_count>1) if(thread_count>1)
avcodec_thread_init(enc, thread_count); avcodec_thread_init(enc, thread_count);
...@@ -1204,7 +1205,6 @@ static int stream_component_open(VideoState *is, int stream_index) ...@@ -1204,7 +1205,6 @@ static int stream_component_open(VideoState *is, int stream_index)
packet_queue_init(&is->videoq); packet_queue_init(&is->videoq);
is->video_tid = SDL_CreateThread(video_thread, is); is->video_tid = SDL_CreateThread(video_thread, is);
enc->debug_mv = debug_mv;
break; break;
default: default:
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment