summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-11-12 10:05:21 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-11-12 10:05:21 +0000
commit92ddb69283d36a3b930fe94ab9f1b4503939b5d1 (patch)
tree47d4df8a8de6d963b83f0b1b65e49958bbe1c526
parent5abd509acd8db563899847588932864c975fb1cf (diff)
* init for inv_zigzag_direct16 moved to init block
Originally committed as revision 1204 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/dsputil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 62051e467f..affdfc5bd5 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -1357,7 +1357,10 @@ void dsputil_init(DSPContext* c, unsigned mask)
for(i=0;i<512;i++) {
squareTbl[i] = (i - 256) * (i - 256);
}
- init_done = 1;
+
+ for(i=0; i<64; i++) inv_zigzag_direct16[ff_zigzag_direct[i]]= i+1;
+
+ init_done = 1;
}
c->get_pixels = get_pixels_c;
@@ -1453,7 +1456,6 @@ void dsputil_init(DSPContext* c, unsigned mask)
dsputil_init_mmi(c, mask);
#endif
- for(i=0; i<64; i++) inv_zigzag_direct16[ff_zigzag_direct[i]]= i+1;
}
/* remove any non bit exact operation (testing purpose) */