Commit 6bd363c3 authored by reimar's avatar reimar

Add a missing break, before av_set_number would always return NULL for

FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11213 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 262e755b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment