Revision 5634f30c

View differences:

ffserver.c
2748 2748
            for (i = 0; i < s->nb_streams; i++) {
2749 2749
                AVStream *fst = feed->streams[i];
2750 2750
                AVStream *st = s->streams[i];
2751
                memcpy(fst->codec, st->codec, sizeof(AVCodecContext));
2752
                if (fst->codec->extradata_size) {
2753
                    fst->codec->extradata = av_malloc(fst->codec->extradata_size);
2754
                    if (!fst->codec->extradata)
2755
                        goto fail;
2756
                    memcpy(fst->codec->extradata, st->codec->extradata,
2757
                           fst->codec->extradata_size);
2758
                }
2751
                avcodec_copy_context(fst->codec, st->codec);
2759 2752
            }
2760 2753

  
2761 2754
            av_close_input_stream(s);

Also available in: Unified diff