Ticket #6418: qsvdec.patch

File qsvdec.patch, 498 bytes (added by rycius, 9 years ago)

Fix QSV dec doesnt consume frames if first frame is not key frame

  • libavcodec/qsvdec.c

    diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
    index c00817f..febebe1 100644
    a b int ff_qsv_process_data(AVCodecContext *avctx, QSVContext *q,  
    500500            av_log(avctx, AV_LOG_ERROR,
    501501                   "Decoding pixel format '%s' is not supported\n",
    502502                   av_get_pix_fmt_name(q->parser->format));
    503             ret = AVERROR(ENOSYS);
     503            ret = pkt->size;
    504504            goto reinit_fail;
    505505        }