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
This commit is contained in:
Reimar Döffinger 2007-06-24 07:38:26 +00:00
parent e46e884f25
commit 01fa74adb9
1 changed files with 2 additions and 0 deletions

View File

@ -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: