Merge commit 'daeb4e3042f2ecae2d41aaa4cae0bed932539788'
[ffmpeg.git] / libavcodec / jpeg2000dec.c
index 711b298d3fe7a15dc2c47d1d77caaa9b5e562422..7b8a9aa9873a114918ecc102039490443e5428f4 100644 (file)
@@ -1412,8 +1412,6 @@ static int jpeg2000_decode_frame(AVCodecContext *avctx, void *data,
         }
     } else {
         bytestream2_seek(&s->g, 0, SEEK_SET);
-        if (bytestream2_peek_be16(&s->g) != JPEG2000_SOC)
-            bytestream2_skip(&s->g, 8);
     }
 
     if (bytestream2_get_be16u(&s->g) != JPEG2000_SOC) {