Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/utils.c Fri Sep 10 02:25:12 2010 +0000 +++ b/utils.c Fri Sep 10 06:19:31 2010 +0000 @@ -505,8 +505,7 @@ } avctx->frame_number = 0; if(avctx->codec->init){ - if(avctx->codec_type == AVMEDIA_TYPE_VIDEO && - avctx->codec->max_lowres < avctx->lowres){ + if (avctx->codec->max_lowres < avctx->lowres) { av_log(avctx, AV_LOG_ERROR, "The maximum value for lowres supported by the decoder is %d\n", avctx->codec->max_lowres); goto free_and_end;