mirror of https://git.ffmpeg.org/ffmpeg.git
ffserver: remove one avcodec_context_copy()
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
418a2b2478
commit
6c15618b90
|
@ -2854,7 +2854,8 @@ static int http_receive_data(HTTPContext *c)
|
||||||
for (i = 0; i < s->nb_streams; i++) {
|
for (i = 0; i < s->nb_streams; i++) {
|
||||||
LayeredAVStream *fst = feed->streams[i];
|
LayeredAVStream *fst = feed->streams[i];
|
||||||
AVStream *st = s->streams[i];
|
AVStream *st = s->streams[i];
|
||||||
avcodec_copy_context(fst->codec, st->codec);
|
avcodec_parameters_to_context(fst->codec, st->codecpar);
|
||||||
|
avcodec_parameters_from_context(fst->codecpar, fst->codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
avformat_close_input(&s);
|
avformat_close_input(&s);
|
||||||
|
|
Loading…
Reference in New Issue