summaryrefslogtreecommitdiff
path: root/libavcodec/jpeg2000.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-26 19:00:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-26 20:15:50 +0200
commit874a06bd1f1659d7be63e45e6607937180306522 (patch)
tree8f6e1fa01ec35833843e4b4ac43b51fb16a1b8b1 /libavcodec/jpeg2000.c
parent6e16321d665a5962812dc85aceaac3693258f1b6 (diff)
downloadffmpeg-874a06bd1f1659d7be63e45e6607937180306522.tar.gz
j2k: cosmetics from jpeg2000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000.c')
-rw-r--r--libavcodec/jpeg2000.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c
index 18bf1b6f99..3ba3ca5589 100644
--- a/libavcodec/jpeg2000.c
+++ b/libavcodec/jpeg2000.c
@@ -96,11 +96,11 @@ static int getsigctxno(int flag, int bandno)
((flag & JPEG2000_T1_SIG_SE) ? 1 : 0) +
((flag & JPEG2000_T1_SIG_SW) ? 1 : 0);
- if (bandno < 3){
+ if (bandno < 3) {
if (bandno == 1)
FFSWAP(int, h, v);
if (h == 2) return 8;
- if (h == 1){
+ if (h == 1) {
if (v >= 1) return 7;
if (d >= 1) return 6;
return 5;
@@ -111,11 +111,11 @@ static int getsigctxno(int flag, int bandno)
if (d == 1) return 1;
} else{
if (d >= 3) return 8;
- if (d == 2){
+ if (d == 2) {
if (h+v >= 1) return 7;
return 6;
}
- if (d == 1){
+ if (d == 1) {
if (h+v >= 2) return 5;
if (h+v == 1) return 4;
return 3;