[FFmpeg-devel] [PATCH 2/7] avcodec/h264_levels: Remove unused ff_h264_get_level()

Michael Niedermayer michael at niedermayer.cc
Fri Feb 7 15:48:26 EET 2020


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/h264_levels.c | 12 ------------
 libavcodec/h264_levels.h |  3 ---
 2 files changed, 15 deletions(-)

diff --git a/libavcodec/h264_levels.c b/libavcodec/h264_levels.c
index dd517f1005..801b27fdd9 100644
--- a/libavcodec/h264_levels.c
+++ b/libavcodec/h264_levels.c
@@ -75,18 +75,6 @@ static int h264_get_br_factor(int profile_idc)
     return 1200;
 }
 
-const H264LevelDescriptor *ff_h264_get_level(int level_idc,
-                                             int constraint_set3_flag)
-{
-    int i;
-    for (i = 0; i < FF_ARRAY_ELEMS(h264_levels); i++) {
-        if (h264_levels[i].level_idc            == level_idc &&
-            h264_levels[i].constraint_set3_flag == constraint_set3_flag)
-            return &h264_levels[i];
-    }
-    return NULL;
-}
-
 const H264LevelDescriptor *ff_h264_guess_level(int profile_idc,
                                                int64_t bitrate,
                                                int framerate,
diff --git a/libavcodec/h264_levels.h b/libavcodec/h264_levels.h
index 0a0f410329..6bba2e8624 100644
--- a/libavcodec/h264_levels.h
+++ b/libavcodec/h264_levels.h
@@ -36,9 +36,6 @@ typedef struct H264LevelDescriptor {
     uint8_t     max_mvs_per_2mb;
 } H264LevelDescriptor;
 
-const H264LevelDescriptor *ff_h264_get_level(int level_idc,
-                                             int constraint_set3_flag);
-
 /**
  * Guess the level of a stream from some parameters.
  *
-- 
2.17.1



More information about the ffmpeg-devel mailing list