aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-12-13 19:00:53 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-12-13 19:00:53 +0000
commit603972fc53934c46e5de0c93f439fee2716f1198 (patch)
treee88edd4d6b0ac2c1d6d95fe420bc8f45cdaf6b77
parent36e097bce45f50509d2ba6b93fbd0ab3f6a585ca (diff)
downloadffmpeg-603972fc53934c46e5de0c93f439fee2716f1198.tar.gz
Add a missing break, before av_set_number would always return NULL for
FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption Originally committed as revision 11213 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index c11dcd3ec9..123530c3f1 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -69,6 +69,7 @@ static const AVOption *av_set_number(void *obj, const char *name, double num, in
case FF_OPT_TYPE_RATIONAL:
if((int)num == num) *(AVRational*)dst= (AVRational){num*intnum, den};
else *(AVRational*)dst= av_d2q(num*intnum/den, 1<<24);
+ break;
default:
return NULL;
}