Mercurial > libavcodec.hg
comparison libopenjpeg.c @ 10507:ca71c924b65f libavcodec
cosmetics : fix indentation.
author | jai_menon |
---|---|
date | Tue, 10 Nov 2009 14:37:42 +0000 |
parents | a050e8857f00 |
children | f33404f82b9e |
comparison
equal
deleted
inserted
replaced
10506:a1d84a5cf21d | 10507:ca71c924b65f |
---|---|
76 | 76 |
77 // Check if input is a raw jpeg2k codestream or in jp2 wrapping | 77 // Check if input is a raw jpeg2k codestream or in jp2 wrapping |
78 if((AV_RB32(buf) == 12) && | 78 if((AV_RB32(buf) == 12) && |
79 (AV_RB32(buf + 4) == JP2_SIG_TYPE) && | 79 (AV_RB32(buf + 4) == JP2_SIG_TYPE) && |
80 (AV_RB32(buf + 8) == JP2_SIG_VALUE)) { | 80 (AV_RB32(buf + 8) == JP2_SIG_VALUE)) { |
81 dec = opj_create_decompress(CODEC_JP2); | 81 dec = opj_create_decompress(CODEC_JP2); |
82 } else { | 82 } else { |
83 dec = opj_create_decompress(CODEC_J2K); | 83 dec = opj_create_decompress(CODEC_J2K); |
84 } | 84 } |
85 | 85 |
86 if(!dec) { | 86 if(!dec) { |
87 av_log(avctx, AV_LOG_ERROR, "Error initializing decoder.\n"); | 87 av_log(avctx, AV_LOG_ERROR, "Error initializing decoder.\n"); |
88 return -1; | 88 return -1; |