diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-12 05:43:52 +0400 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-12 05:43:52 +0400 |
commit | 837d248df67340defb8a8cf8fd09bba8ed89763c (patch) | |
tree | 7d69a214b8f0205c891413efbfe43876bd701179 /ffmpeg.c | |
parent | ce072b2d30627413dc0c58dd8d1fc898a7abcadd (diff) |
enable stream copy with ffserver, to be able to chain
Originally committed as revision 13753 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |