ffmpeg: fix codecids with ffserver + ffmpeg + ffm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ee731c1ab0)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-12-12 17:30:55 +01:00
parent b8c41e5c08
commit e6a5de4421

View File

@@ -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));