X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fqsvdec_mpeg2.c;h=36fd3b07d24331a80b5e4dd7bce4b2eecc6ced30;hb=0f98fd30e2d3c7254a1c56ce42a9a8bf0f6dc0eb;hp=975dd9e571d9f27185efb08c04d158b766344941;hpb=d9218011ef411c56073f63629842a1fa26454c75;p=ffmpeg diff --git a/libavcodec/qsvdec_mpeg2.c b/libavcodec/qsvdec_mpeg2.c index 975dd9e571d..36fd3b07d24 100644 --- a/libavcodec/qsvdec_mpeg2.c +++ b/libavcodec/qsvdec_mpeg2.c @@ -57,6 +57,8 @@ static int qsv_decode_frame(AVCodecContext *avctx, void *data, static void qsv_decode_flush(AVCodecContext *avctx) { + QSVMPEG2Context *s = avctx->priv_data; + ff_qsv_decode_reset(avctx, &s->qsv); } AVHWAccel ff_mpeg2_qsv_hwaccel = {