ffmpeg: fix codecids with ffserver + ffmpeg + ffm
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Dec 2011 16:30:55 +0000 (17:30 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Dec 2011 16:30:55 +0000 (17:30 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index daa014b..9154f3c 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3962,6 +3962,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch
         ost   = new_output_stream(o, s, codec->type);
         st    = ost->st;
         avctx = st->codec;
+        ost->enc = codec;
 
         // FIXME: a more elegant solution is needed
         memcpy(st, ic->streams[i], sizeof(AVStream));