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
This commit is contained in:
parent
36e097bce4
commit
603972fc53
@ -69,6 +69,7 @@ static const AVOption *av_set_number(void *obj, const char *name, double num, in
|
|||||||
case FF_OPT_TYPE_RATIONAL:
|
case FF_OPT_TYPE_RATIONAL:
|
||||||
if((int)num == num) *(AVRational*)dst= (AVRational){num*intnum, den};
|
if((int)num == num) *(AVRational*)dst= (AVRational){num*intnum, den};
|
||||||
else *(AVRational*)dst= av_d2q(num*intnum/den, 1<<24);
|
else *(AVRational*)dst= av_d2q(num*intnum/den, 1<<24);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user