summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-09-10 06:19:31 +0000
committerMartin Storsjö <martin@martin.st>2010-09-10 06:19:31 +0000
commit535cb0434db078488579eea5865045b13ae1516d (patch)
tree70e14e312272dbf5de8c7c8c1d58f33922eb372b /libavcodec/utils.c
parent240fd8ef06cdffe09571c17701b44dfa3766bdf9 (diff)
Allow the lowres option to affect audio codecs, too
Originally committed as revision 25094 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 067c213ada..442b9efe27 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -505,8 +505,7 @@ int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
}
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;