From 595c8164011910b67fe5bc4719dec7dc100d2623 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sun, 9 Sep 2012 00:55:59 +0000 Subject: hb_apply_h264_level() update & cleanup. The caller may specify any width & height now, rather than having to initialize the x264_param_t's fields directly. Since it's reasonable to expect GUIs to only provide valid levels (if it doesn't, there's a bug that needs fixing), it's OK to abort when the requested level is not valid. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4944 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encx264.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libhb/encx264.h') diff --git a/libhb/encx264.h b/libhb/encx264.h index 0c1800d13..369cc5377 100644 --- a/libhb/encx264.h +++ b/libhb/encx264.h @@ -40,4 +40,7 @@ static const char * const x264_encopt_synonyms[] = 0 }; -void hb_apply_h264_level( x264_param_t * param, const char * level, const char * x264_profile ); +int hb_apply_h264_level(x264_param_t *param, + int width, int height, + const char *h264_level, + const char *x264_profile); -- cgit v1.2.3