# HG changeset patch # User reimar # Date 1197572453 0 # Node ID bb4f24c580f59eaf38eb95656a7b024eb336f15e # Parent 33b0514769b2a090494aab64a8faa41ec2bfb0a8 Add a missing break, before av_set_number would always return NULL for FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption diff -r 33b0514769b2 -r bb4f24c580f5 opt.c --- a/opt.c Thu Dec 13 00:50:47 2007 +0000 +++ b/opt.c Thu Dec 13 19:00:53 2007 +0000 @@ -69,6 +69,7 @@ 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; }