git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36e097b
)
Add a missing break, before av_set_number would always return NULL for
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 13 Dec 2007 19:00:53 +0000
(19:00 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 13 Dec 2007 19:00:53 +0000
(19:00 +0000)
FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption
Originally committed as revision 11213 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
c11dcd3
..
123530c
100644
(file)
--- 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;
}