Mercurial > libavformat.hg
changeset 2191:147b82d29e29 libavformat
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.
author | reimar |
---|---|
date | Sun, 24 Jun 2007 07:38:26 +0000 |
parents | 5336ab380173 |
children | c97fab0f9803 |
files | dvenc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dvenc.c Sat Jun 23 23:10:35 2007 +0000 +++ b/dvenc.c Sun Jun 24 07:38:26 2007 +0000 @@ -300,9 +300,11 @@ 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: