summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion1data.h
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2005-11-05 19:03:07 +0000
committerDiego Biurrun <diego@biurrun.de>2005-11-05 19:03:07 +0000
commit7c017693c9388ba1284c58fbb930577727d8c206 (patch)
tree7090d58d6b7fad261e24fd885cba1c9be903fa8e /libavcodec/truemotion1data.h
parenta75a3ca429e0c0f34a60c3fbd4653f6cd3ab94d7 (diff)
Two tables in truemotion1data.h were slightly different from VpVision
source. This patch fixes decoding of some samples from Phantasmagoria 2 (they use delta tables N1, not N0 as the rest of files). patch by the author, Kostya Shishkov < kostya -- dot -- shishkov -- at -- gmail -- dot -- com > Originally committed as revision 4679 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/truemotion1data.h')
-rw-r--r--libavcodec/truemotion1data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/truemotion1data.h b/libavcodec/truemotion1data.h
index 59b863713b..800bb306bf 100644
--- a/libavcodec/truemotion1data.h
+++ b/libavcodec/truemotion1data.h
@@ -11,7 +11,7 @@
/* Y delta tables, skinny and fat */
static const int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 };
-static const int16_t ydt2[8] = { 0, -2, 2, -6, 6, -12, 12, -12 };
+static const int16_t ydt2[8] = { 0, -2, 4, -6, 8, -12, 12, -12 };
static const int16_t ydt3[8] = { 4, -6, 20, -20, 46, -46, 94, -94 };
static const int16_t fat_ydt3[8] = { 0, -15, 50, -50, 115, -115, 235, -235 };
static const int16_t ydt4[8] = { 0, -4, 4, -16, 16, -36, 36, -80 };
@@ -29,7 +29,7 @@ static const int16_t fat_cdt3[8] = { 0, 40, 80, -76, 160, -154, 236, -236 };
/* all the delta tables to choose from, at all 4 delta levels */
static const int16_t *ydts[] = { ydt1, ydt2, ydt3, ydt4, NULL };
static const int16_t *fat_ydts[] = { fat_ydt3, fat_ydt3, fat_ydt3, fat_ydt4, NULL };
-static const int16_t *cdts[] = { cdt1, cdt2, cdt3, cdt3, NULL };
+static const int16_t *cdts[] = { cdt1, cdt1, cdt2, cdt3, NULL };
static const int16_t *fat_cdts[] = { fat_cdt2, fat_cdt2, fat_cdt2, fat_cdt3, NULL };
static const uint8_t pc_tbl2[] = {