summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2015-05-19 10:32:45 +0300
committerLajos Molnar <lajos@google.com>2015-06-03 15:45:01 +0000
commit329d7714ba4d26745fbef4463d891992043fe066 (patch)
treeb8943d12df1cc59f514b282f41bd5e3104972b33
parentf2d752259cac70dcffab5ca774ed9f8568134444 (diff)
downloadplatform_external_libavc-329d7714ba4d26745fbef4463d891992043fe066.tar.gz
platform_external_libavc-329d7714ba4d26745fbef4463d891992043fe066.tar.bz2
platform_external_libavc-329d7714ba4d26745fbef4463d891992043fe066.zip
Fix a typo in gas_ih264_lvl_tbl, set proper sizes for level 1.1
The table values themselves were correct, but the level values were swapped for 1.1 and 1B. This fixes encoding using level 1.1, which previously got the wrong (too small) sizes (corresponding to level 1B). Change-Id: Ic0acc58eb5841710ffd8be54bf97800fdbb40855
-rw-r--r--common/ih264_common_tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ih264_common_tables.c b/common/ih264_common_tables.c
index 0032771..aeee7b6 100644
--- a/common/ih264_common_tables.c
+++ b/common/ih264_common_tables.c
@@ -64,8 +64,8 @@
const level_tables_t gas_ih264_lvl_tbl[16] =
{
{ IH264_LEVEL_10, 1485, 99, 297, 64, 175, 64 },
- { IH264_LEVEL_11, 1485, 99, 297, 128, 350, 64 },
- { IH264_LEVEL_1B, 3000, 396, 675, 192, 500, 128 },
+ { IH264_LEVEL_1B, 1485, 99, 297, 128, 350, 64 },
+ { IH264_LEVEL_11, 3000, 396, 675, 192, 500, 128 },
{ IH264_LEVEL_12, 6000, 396, 1782, 384, 1000, 128 },
{ IH264_LEVEL_13, 11880, 396, 1782, 768, 2000, 128 },
{ IH264_LEVEL_20, 11880, 396, 1782, 2000, 2000, 128 },