[vlc-commits] commit: x264: actually check limit for level is told between 10 and 51 ( Ilkka Ollakka )
git at videolan.org
git at videolan.org
Thu Apr 1 13:58:44 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Apr 1 14:52:32 2010 +0300| [964d245932059ecf60fa3620b04643b40eea8f0b] | committer: Ilkka Ollakka
x264: actually check limit for level is told between 10 and 51
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=964d245932059ecf60fa3620b04643b40eea8f0b
---
modules/codec/x264.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 4606ab2..1bc4214 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -844,7 +844,7 @@ static int Open ( vlc_object_t *p_this )
if( us_atof (psz_val) < 6 && us_atof (psz_val) > 0 )
p_sys->param.i_level_idc = (int) (10 * us_atof (psz_val)
+ .5);
- else if( atoi(psz_val) > 0 )
+ else if( atoi(psz_val) >= 10 && atoi(psz_val) <= 51 )
p_sys->param.i_level_idc = atoi (psz_val);
free( psz_val );
}
More information about the vlc-commits
mailing list