[FFmpeg-cvslog] r9403 - trunk/libavformat/dvenc.c

reimar subversion
Sun Jun 24 09:38:26 CEST 2007


Author: reimar
Date: Sun Jun 24 09:38:26 2007
New Revision: 9403

Log:
DV muxer should not only fail for more that 3 streams altogether
but also if two of them are video or all three are audio.


Modified:
   trunk/libavformat/dvenc.c

Modified: trunk/libavformat/dvenc.c
==============================================================================
--- trunk/libavformat/dvenc.c	(original)
+++ trunk/libavformat/dvenc.c	Sun Jun 24 09:38:26 2007
@@ -300,9 +300,11 @@ DVMuxContext* dv_init_mux(AVFormatContex
     for (i=0; i<s->nb_streams; i++) {
          switch (s->streams[i]->codec->codec_type) {
          case CODEC_TYPE_VIDEO:
+               if (vst) return NULL;
                vst = s->streams[i];
                break;
          case CODEC_TYPE_AUDIO:
+             if (c->n_ast > 1) return NULL;
              c->ast[c->n_ast++] = s->streams[i];
              break;
          default:




More information about the ffmpeg-cvslog mailing list