Commit c407cd2c authored by bcoudurier's avatar bcoudurier

copy extradata if present

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13913 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8711d8d7
...@@ -2497,9 +2497,18 @@ static int http_receive_data(HTTPContext *c) ...@@ -2497,9 +2497,18 @@ static int http_receive_data(HTTPContext *c)
goto fail; goto fail;
} }
for (i = 0; i < s->nb_streams; i++) for (i = 0; i < s->nb_streams; i++) {
memcpy(feed->streams[i]->codec, AVStream *fst = feed->streams[i];
s->streams[i]->codec, sizeof(AVCodecContext)); AVStream *st = s->streams[i];
memcpy(fst->codec, st->codec, sizeof(AVCodecContext));
if (fst->codec->extradata_size) {
fst->codec->extradata = av_malloc(fst->codec->extradata_size);
if (!fst->codec->extradata)
goto fail;
memcpy(fst->codec->extradata, st->codec->extradata,
fst->codec->extradata_size);
}
}
av_close_input_stream(s); av_close_input_stream(s);
av_free(pb); av_free(pb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment