avcodec/utils: only warn when passed invalid lowres value
authorAman Gupta <aman@tmm1.net>
Thu, 4 Aug 2016 22:35:57 +0000 (15:35 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Aug 2016 14:34:20 +0000 (16:34 +0200)
commitb5f30fe8fea586545b140abbd0602188b09d3133
tree13817f1e26480f3c4a0931666ad0b6d964d1c69d
parente8b355a0288ce8f575cc12cce7e7b7b0dae62525
avcodec/utils: only warn when passed invalid lowres value

This makes it easier to use the lowres option when dealing with input
files in different codecs. If the codec doesn't support lowres=1 for
instance, it will throw a warning and use lowres=0 instead of erroring
out completely.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c