Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
... | ... |
@@ -2854,7 +2854,8 @@ static int http_receive_data(HTTPContext *c) |
2854 | 2854 |
for (i = 0; i < s->nb_streams; i++) { |
2855 | 2855 |
LayeredAVStream *fst = feed->streams[i]; |
2856 | 2856 |
AVStream *st = s->streams[i]; |
2857 |
- avcodec_copy_context(fst->codec, st->codec); |
|
2857 |
+ avcodec_parameters_to_context(fst->codec, st->codecpar); |
|
2858 |
+ avcodec_parameters_from_context(fst->codecpar, fst->codec); |
|
2858 | 2859 |
} |
2859 | 2860 |
|
2860 | 2861 |
avformat_close_input(&s); |