[FFmpeg-devel] [PATCH 2/7] avcodec/h264_levels: Remove unused ff_h264_get_level()
Michael Niedermayer
michaelni at gmx.at
Sat Feb 8 01:12:44 EET 2020
On Fri, Feb 07, 2020 at 12:41:58PM -0300, James Almer wrote:
> On 2/7/2020 10:48 AM, Michael Niedermayer wrote:
> > 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.
> > *
>
> This was added for a reason by Mark, so please wait for him to comment
> before applying it. There may be a patchset pending push/review that
> makes use of it.
sure, will wait
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200208/8e5bd6e7/attachment.sig>
More information about the ffmpeg-devel
mailing list