changeset 6015:bb4f24c580f5 libavcodec

Add a missing break, before av_set_number would always return NULL for FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption
author reimar
date Thu, 13 Dec 2007 19:00:53 +0000
parents 33b0514769b2
children 5455f4e43948
files opt.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }