Commit eb47c6cd authored by bcoudurier's avatar bcoudurier

enable stream copy with ffserver, to be able to chain

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13753 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8c1eae58
......@@ -443,6 +443,12 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
st->codec = avcodec_alloc_context();
memcpy(st->codec, ic->streams[i]->codec, sizeof(AVCodecContext));
s->streams[i] = st;
if (st->codec->codec_type == CODEC_TYPE_AUDIO && audio_stream_copy)
st->stream_copy = 1;
else if (st->codec->codec_type == CODEC_TYPE_VIDEO && video_stream_copy)
st->stream_copy = 1;
if(st->codec->flags & CODEC_FLAG_BITEXACT)
nopts = 1;
}
......
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