[FFmpeg-cvslog] r13753 - trunk/ffmpeg.c

bcoudurier subversion
Thu Jun 12 03:43:52 CEST 2008


Author: bcoudurier
Date: Thu Jun 12 03:43:52 2008
New Revision: 13753

Log:
enable stream copy with ffserver, to be able to chain

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Thu Jun 12 03:43:52 2008
@@ -443,6 +443,12 @@ static int read_ffserver_streams(AVForma
         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;
     }




More information about the ffmpeg-cvslog mailing list