diff options
author | Martin Storsjo <martin@martin.st> | 2015-05-15 14:23:46 +0300 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-06-03 08:47:38 -0700 |
commit | c75cf37283c11079d6015385453200f4710656da (patch) | |
tree | ca6940a3da03525813ad34366fdc82dde6d27a12 /encoder/ih264e_utils.c | |
parent | e398f0eccbb4f824631eabcd0fd5bce4b7c7d6e1 (diff) | |
download | android_external_libavc-c75cf37283c11079d6015385453200f4710656da.tar.gz android_external_libavc-c75cf37283c11079d6015385453200f4710656da.tar.bz2 android_external_libavc-c75cf37283c11079d6015385453200f4710656da.zip |
Support levels 5.0 and 5.1 in the encoder properly
The function ih264e_get_lvl_idx lacked handling of them
before, which meant that it returned index 0 (corresponding
to level 1.0) if level 5.0 or 5.1 were selected.
Change-Id: I482213e68e11fd091c72ec57a593392aa1a0a4ae
Diffstat (limited to 'encoder/ih264e_utils.c')
-rw-r--r-- | encoder/ih264e_utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/encoder/ih264e_utils.c b/encoder/ih264e_utils.c index 44e4cc0..3657f33 100644 --- a/encoder/ih264e_utils.c +++ b/encoder/ih264e_utils.c @@ -225,6 +225,14 @@ WORD32 ih264e_get_lvl_idx(WORD32 level) { lvl_idx = 12; } + else if (level < IH264_LEVEL_51) + { + lvl_idx = 13; + } + else + { + lvl_idx = 14; + } return (lvl_idx); } |