diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-06-24 07:38:26 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-06-24 07:38:26 +0000 |
commit | 01fa74adb95666cb23e7f6f8175eeab889ee21d9 (patch) | |
tree | 9794f08992d0c004b7de73f877d756e986232669 /libavformat | |
parent | e46e884f256f963b8b655df8c180e6faf3ee6820 (diff) | |
download | ffmpeg-streaming-01fa74adb95666cb23e7f6f8175eeab889ee21d9.zip ffmpeg-streaming-01fa74adb95666cb23e7f6f8175eeab889ee21d9.tar.gz |
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.
Originally committed as revision 9403 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dvenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index 98faf06..cd22e97 100644 --- a/libavformat/dvenc.c +++ b/libavformat/dvenc.c @@ -300,9 +300,11 @@ DVMuxContext* dv_init_mux(AVFormatContext* s) 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: |