Commit ba006594 authored by reimar's avatar reimar

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9403 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d0dd472c
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment