OSDN Git Service

Don't let output pixel format influence input pixel format.
authorChris Stones <chris.stones@gmail.com>
Mon, 1 Mar 2010 16:47:44 +0000 (16:47 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 1 Mar 2010 16:47:44 +0000 (16:47 +0000)
Patch by Chris Stones,  chris D stones A gmail

Originally committed as revision 22130 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 8c0bdd9..3f88089 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3213,6 +3213,7 @@ static void new_video_stream(AVFormatContext *oc)
     video_disable = 0;
     av_freep(&video_codec_name);
     video_stream_copy = 0;
+    frame_pix_fmt = PIX_FMT_NONE;
 }
 
 static void new_audio_stream(AVFormatContext *oc)