]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qdrw.c
hevc: ppc: Add HEVC 4x4 IDCT for PowerPC
[ffmpeg] / libavcodec / qdrw.c
index f7a437711b10516c8f35686705f104a7d01341c5..b7493e4da7b8aef9f597b666126b0eb5eb3456b8 100644 (file)
@@ -125,6 +125,10 @@ static int decode_frame(AVCodecContext *avctx,
 
     bytestream2_init(&gbc, avpkt->data, avpkt->size);
 
+    /* PICT images start with a 512 bytes empty header */
+    if (bytestream2_peek_be32(&gbc) == 0)
+        bytestream2_skip(&gbc, 512);
+
     /* smallest PICT header */
     if (bytestream2_get_bytes_left(&gbc) < 40) {
         av_log(avctx, AV_LOG_ERROR, "Frame is too small %d\n",
@@ -304,5 +308,5 @@ AVCodec ff_qdraw_decoder = {
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = AV_CODEC_ID_QDRAW,
     .decode         = decode_frame,
-    .capabilities   = CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DR1,
 };