Merge commit 'd57c737ac30cf079a342fa649fd4888c2d059dd9'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Jul 2013 14:22:11 +0000 (16:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Jul 2013 14:26:01 +0000 (16:26 +0200)
* commit 'd57c737ac30cf079a342fa649fd4888c2d059dd9':
  jpeg2000: Simplify jpeg2000_decode_packets()
  jpeg2000: Do not crash on NULL node in tag_tree_decode
  jpeg2000: Refactor SOT marker parsing

Conflicts:
libavcodec/jpeg2000dec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/jpeg2000dec.c

@@@ -725,8 -728,7 +726,10 @@@ static int jpeg2000_decode_packets(Jpeg
  
      s->bit_index = 8;
      switch (tile->codsty[0].prog_order) {
-     case JPEG2000_PGOD_LRCP:
 +    case JPEG2000_PGOD_RLCP:
++        avpriv_request_sample(s->avctx, "Progression order RLCP");
++
+     case JPEG2000_PGOD_LRCP:
          for (layno = 0; layno < tile->codsty[0].nlayers; layno++) {
              ok_reslevel = 1;
              for (reslevelno = 0; ok_reslevel; reslevelno++) {
          }
          break;
  
 -    case JPEG2000_PGOD_RLCP:
 -        avpriv_request_sample(s->avctx, "Progression order RLCP");
 -        ret = AVERROR_PATCHWELCOME;
 -        break;
 -
+     case JPEG2000_PGOD_RPCL:
+         avpriv_request_sample(s->avctx, "Progression order RPCL");
+         ret = AVERROR_PATCHWELCOME;
+         break;
+     case JPEG2000_PGOD_PCRL:
+         avpriv_request_sample(s->avctx, "Progression order PCRL");
+         ret = AVERROR_PATCHWELCOME;
+         break;
      default:
          break;
      }