Mercurial > libavcodec.hg
comparison utils.c @ 12481:e9a1e1ba768f libavcodec
Allow the lowres option to affect audio codecs, too
| author | mstorsjo |
|---|---|
| date | Fri, 10 Sep 2010 06:19:31 +0000 |
| parents | d821f7c64fc9 |
| children | 8cd356429e9f |
comparison
equal
deleted
inserted
replaced
| 12480:14896fa76003 | 12481:e9a1e1ba768f |
|---|---|
| 503 av_log(avctx, AV_LOG_ERROR, "codec type or id mismatches\n"); | 503 av_log(avctx, AV_LOG_ERROR, "codec type or id mismatches\n"); |
| 504 goto free_and_end; | 504 goto free_and_end; |
| 505 } | 505 } |
| 506 avctx->frame_number = 0; | 506 avctx->frame_number = 0; |
| 507 if(avctx->codec->init){ | 507 if(avctx->codec->init){ |
| 508 if(avctx->codec_type == AVMEDIA_TYPE_VIDEO && | 508 if (avctx->codec->max_lowres < avctx->lowres) { |
| 509 avctx->codec->max_lowres < avctx->lowres){ | |
| 510 av_log(avctx, AV_LOG_ERROR, "The maximum value for lowres supported by the decoder is %d\n", | 509 av_log(avctx, AV_LOG_ERROR, "The maximum value for lowres supported by the decoder is %d\n", |
| 511 avctx->codec->max_lowres); | 510 avctx->codec->max_lowres); |
| 512 goto free_and_end; | 511 goto free_and_end; |
| 513 } | 512 } |
| 514 | 513 |
