[FFmpeg-cvslog] qsvdec: make ff_qsv_decode_init() static

Anton Khirnov git at videolan.org
Tue Sep 29 14:20:38 CEST 2015


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Aug  5 14:30:37 2015 +0200| [8aecec84021a61b943718ff3d7c2c57fcd4af199] | committer: Anton Khirnov

qsvdec: make ff_qsv_decode_init() static

It is not used outside of qsvdec.c anymore.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8aecec84021a61b943718ff3d7c2c57fcd4af199
---

 libavcodec/qsvdec.c |    4 ++--
 libavcodec/qsvdec.h |    2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 2b81688..ca6f781 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 5627f06..698d8c8 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);
 



More information about the ffmpeg-cvslog mailing list