Commit 8aecec84 authored by Anton Khirnov's avatar Anton Khirnov

qsvdec: make ff_qsv_decode_init() static

It is not used outside of qsvdec.c anymore.
parent 539e5ac2
......@@ -70,7 +70,7 @@ static int qsv_init_session(AVCodecContext *avctx, QSVContext *q, mfxSession ses
return 0;
}
int ff_qsv_decode_init(AVCodecContext *avctx, QSVContext *q, mfxSession session)
static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q, mfxSession session)
{
mfxVideoParam param = { { 0 } };
int ret;
......@@ -413,7 +413,7 @@ int ff_qsv_process_data(AVCodecContext *avctx, QSVContext *q,
q->nb_ext_buffers = user_ctx->nb_ext_buffers;
}
ret = ff_qsv_decode_init(avctx, q, session);
ret = qsv_decode_init(avctx, q, session);
if (ret < 0)
goto reinit_fail;
}
......
......@@ -67,8 +67,6 @@ typedef struct QSVContext {
int ff_qsv_map_pixfmt(enum AVPixelFormat format);
int ff_qsv_decode_init(AVCodecContext *s, QSVContext *q, mfxSession session);
int ff_qsv_process_data(AVCodecContext *avctx, QSVContext *q,
AVFrame *frame, int *got_frame, AVPacket *pkt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment