Mercurial > libavcodec.hg
diff mlpdec.c @ 9201:753780c4875e libavcodec
truehd: support up to 3 substreams.
author | ramiro |
---|---|
date | Fri, 20 Mar 2009 13:02:15 +0000 |
parents | 5b4f4d83431f |
children | 42e9c5b34503 |
line wrap: on
line diff
--- a/mlpdec.c Fri Mar 20 12:04:58 2009 +0000 +++ b/mlpdec.c Fri Mar 20 13:02:15 2009 +0000 @@ -280,6 +280,10 @@ if (mh.num_substreams == 0) return -1; + if (m->avctx->codec_id == CODEC_ID_MLP && mh.num_substreams > 2) { + av_log(m->avctx, AV_LOG_ERROR, "MLP only supports up to 2 substreams.\n"); + return -1; + } if (mh.num_substreams > MAX_SUBSTREAMS) { av_log(m->avctx, AV_LOG_ERROR, "Number of substreams %d is larger than the maximum supported "