aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-27 16:10:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-27 16:10:36 +0200
commit9a18395b92f021938e1db29100f6c8ca690d3ab7 (patch)
treeffa61a1e49713e51f6457be5d72b2b76d61b74b0
parentc2e942099ac8ec989ec49ca9f466909726548091 (diff)
downloadffmpeg-9a18395b92f021938e1db29100f6c8ca690d3ab7.tar.gz
j2k/jpeg2000: merge a few whitespaces
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/j2k.c15
-rw-r--r--libavcodec/jpeg2000.c2
2 files changed, 9 insertions, 8 deletions
diff --git a/libavcodec/j2k.c b/libavcodec/j2k.c
index 443259b40d..1409f1f24c 100644
--- a/libavcodec/j2k.c
+++ b/libavcodec/j2k.c
@@ -431,14 +431,15 @@ void ff_j2k_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
for (bandno = 0; bandno < reslevel->nbands; bandno++) {
Jpeg2000Band *band = reslevel->band + bandno;
- for (precno = 0; precno < reslevel->num_precincts_x * reslevel->num_precincts_y; precno++) {
- Jpeg2000Prec *prec = band->prec + precno;
- av_freep(&prec->zerobits);
- av_freep(&prec->cblkincl);
- av_freep(&prec->cblk);
- }
- av_freep(&band->prec);
+ for (precno = 0; precno < reslevel->num_precincts_x * reslevel->num_precincts_y; precno++) {
+ Jpeg2000Prec *prec = band->prec + precno;
+ av_freep(&prec->zerobits);
+ av_freep(&prec->cblkincl);
+ av_freep(&prec->cblk);
}
+
+ av_freep(&band->prec);
+ }
av_freep(&reslevel->band);
}
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c
index 0acc200a9d..988adeba5f 100644
--- a/libavcodec/jpeg2000.c
+++ b/libavcodec/jpeg2000.c
@@ -109,7 +109,7 @@ static int getsigctxno(int flag, int bandno)
if (v == 1) return 3;
if (d >= 2) return 2;
if (d == 1) return 1;
- } else{
+ } else {
if (d >= 3) return 8;
if (d == 2) {
if (h+v >= 1) return 7;