Remove unused parameter 78/278478/1
authorminje.ahn <minje.ahn@samsung.com>
Thu, 21 Jul 2022 05:16:34 +0000 (14:16 +0900)
committerminje.ahn <minje.ahn@samsung.com>
Thu, 21 Jul 2022 05:16:34 +0000 (14:16 +0900)
Change-Id: Icaab9bc39b3efd7c54e535bdb61f1f1bc707ce13
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
formats/ffmpeg/mm_file_format_ffmpeg.c

index 634da17..bc0976c 100644 (file)
@@ -54,7 +54,7 @@ static void _dump_av_packet(AVPacket *pkt)
 }
 #endif
 
-static int     _get_first_good_video_frame(AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, int videoStream, AVFrame **pFrame, int cdis);
+static int     _get_first_good_video_frame(AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, AVFrame **pFrame, int cdis);
 
 static int __convert_vidio_codec_type(int AVVideoCodecID)
 {
@@ -845,7 +845,7 @@ int mmfile_format_read_frame_ffmpg(MMFileFormatContext *formatContext, unsigned
        }
 
        /* search & decode */
-       ret = _get_first_good_video_frame(pFormatCtx, pVideoCodecCtx, formatContext->videoStreamId, &pFrame, formatContext->cdis);
+       ret = _get_first_good_video_frame(pFormatCtx, pVideoCodecCtx, &pFrame, formatContext->cdis);
        if (ret != MMFILE_FORMAT_SUCCESS) {
                debug_error(DEBUG, "error: get key frame");
                ret = MMFILE_FORMAT_FAIL;
@@ -1043,7 +1043,7 @@ static void _save_pgm(unsigned char *buf, int wrap, int xsize, int ysize, char *
 }
 #endif
 
-static int _get_first_good_video_frame(AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, int videoStream, AVFrame **pFrame, int cdis)
+static int _get_first_good_video_frame(AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, AVFrame **pFrame, int cdis)
 {
 #define        _RETRY_SEARCH_LIMIT             250
 #define        _KEY_SEARCH_LIMIT               (_RETRY_SEARCH_LIMIT*2)         /*2 = 1 read. some frame need to read one more*/
@@ -1053,15 +1053,12 @@ static int _get_first_good_video_frame(AVFormatContext *pFormatCtx, AVCodecConte
 #define        _KEY_SEARCH_LIMIT_CDIS          (_RETRY_SEARCH_LIMIT*2)         /*2 = 1 read. some frame need to read one more*/
 #define        _FRAME_SEARCH_LIMIT_CDIS                10
 
-       /* AVStream *st = NULL; */
        AVPacket *pkt = NULL;
 
        AVFrame *frame = NULL;
        AVFrame *tmp_frame = NULL;
        AVFrame *first_frame = NULL;
 
-       /* long long timestamp; */
-       /*int stream_id = videoStream;*/
        int ret;
        int found = 0;
        int i, v, len;