diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-08-05 14:30:37 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-09-28 15:46:58 +0200 |
commit | 8aecec84021a61b943718ff3d7c2c57fcd4af199 (patch) | |
tree | d2efa78864294105c9ecacba80e4b90068511ae8 | |
parent | 539e5ac2ecfec2e2f441222a43fb0583643ea607 (diff) | |
download | ffmpeg-8aecec84021a61b943718ff3d7c2c57fcd4af199.tar.gz |
qsvdec: make ff_qsv_decode_init() static
It is not used outside of qsvdec.c anymore.
-rw-r--r-- | libavcodec/qsvdec.c | 4 | ||||
-rw-r--r-- | libavcodec/qsvdec.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 2b81688964..ca6f78110b 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -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; } diff --git a/libavcodec/qsvdec.h b/libavcodec/qsvdec.h index 5627f06e13..698d8c89b4 100644 --- a/libavcodec/qsvdec.h +++ b/libavcodec/qsvdec.h @@ -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); |