Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-06-08 18:38:37 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-06-08 18:38:37 +0400
commit9e4cb03a93593f8ddb8b4ea3c7ee3bf8acb7ea21 (patch)
tree49724543ae4ba41977c593bacb423618b743a01a /libavcodec/j2kdec.c
parentd552f616a26623e5b593e4d3474c61563f3939fd (diff)
Fix "mixed declarations and code" warnings.
Diffstat (limited to 'libavcodec/j2kdec.c')
-rw-r--r--libavcodec/j2kdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 2497a2e015..73af6a73df 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -692,6 +692,8 @@ static int decode_cblk(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kT1Contex
int width, int height, int bandpos)
{
int passno = cblk->npasses, pass_t = 2, bpno = cblk->nonzerobits - 1, y, clnpass_cnt = 0;
+ int bpass_csty_symbol = J2K_CBLK_BYPASS & codsty->cblk_style;
+ int vert_causal_ctx_csty_symbol = J2K_CBLK_VSC & codsty->cblk_style;
for (y = 0; y < height+2; y++)
memset(t1->flags[y], 0, (width+2)*sizeof(int));
@@ -703,9 +705,6 @@ static int decode_cblk(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kT1Contex
cblk->data[cblk->length] = 0xff;
cblk->data[cblk->length+1] = 0xff;
- int bpass_csty_symbol = J2K_CBLK_BYPASS & codsty->cblk_style;
- int vert_causal_ctx_csty_symbol = J2K_CBLK_VSC & codsty->cblk_style;
-
while(passno--){
switch(pass_t){
case 0: decode_sigpass(t1, width, height, bpno+1, bandpos,