[FFmpeg-devel] [PATCH 1/3] avcodec/avcodec: Add codec_tags array to AVCodec

Michael Niedermayer michael at niedermayer.cc
Tue Jan 21 20:43:49 EET 2020


On Mon, Dec 30, 2019 at 10:38:11AM +0100, Nicolas George wrote:
> Michael Niedermayer (12019-12-30):
> > This allows the fuzzer to target meaningfull codec tags instead
> > of hunting the 4gb space, which it seems to have problems with.
> > 
> > Suggested-by: James
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavcodec/avcodec.h | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> > index 119b32dc1f..b0c6a8f2e3 100644
> > --- a/libavcodec/avcodec.h
> > +++ b/libavcodec/avcodec.h
> > @@ -3634,6 +3634,12 @@ typedef struct AVCodec {
> >       * The user can only access this field via avcodec_get_hw_config().
> >       */
> >      const struct AVCodecHWConfigInternal **hw_configs;
> > +
> > +    /**
> > +     * List of supported codec_tags, terminated by CODEC_TAGS_END.
> > +     */
> > +    const uint32_t *codec_tags;
> 
> > +#define CODEC_TAGS_END -1
> 
> AV_ prefix please.

will apply with that change

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- 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/20200121/7b7f1b7e/attachment.sig>


More information about the ffmpeg-devel mailing list