Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9200:7b62de9c383d | 9201:753780c4875e |
---|---|
278 return -1; | 278 return -1; |
279 } | 279 } |
280 | 280 |
281 if (mh.num_substreams == 0) | 281 if (mh.num_substreams == 0) |
282 return -1; | 282 return -1; |
283 if (m->avctx->codec_id == CODEC_ID_MLP && mh.num_substreams > 2) { | |
284 av_log(m->avctx, AV_LOG_ERROR, "MLP only supports up to 2 substreams.\n"); | |
285 return -1; | |
286 } | |
283 if (mh.num_substreams > MAX_SUBSTREAMS) { | 287 if (mh.num_substreams > MAX_SUBSTREAMS) { |
284 av_log(m->avctx, AV_LOG_ERROR, | 288 av_log(m->avctx, AV_LOG_ERROR, |
285 "Number of substreams %d is larger than the maximum supported " | 289 "Number of substreams %d is larger than the maximum supported " |
286 "by the decoder. %s\n", mh.num_substreams, sample_message); | 290 "by the decoder. %s\n", mh.num_substreams, sample_message); |
287 return -1; | 291 return -1; |