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:
1
ffmpeg.c
1
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);
|
ost = new_output_stream(o, s, codec->type);
|
||||||
st = ost->st;
|
st = ost->st;
|
||||||
avctx = st->codec;
|
avctx = st->codec;
|
||||||
|
ost->enc = codec;
|
||||||
|
|
||||||
// FIXME: a more elegant solution is needed
|
// FIXME: a more elegant solution is needed
|
||||||
memcpy(st, ic->streams[i], sizeof(AVStream));
|
memcpy(st, ic->streams[i], sizeof(AVStream));
|
||||||
|
|||||||
Reference in New Issue
Block a user