]> git.sesse.net Git - ffmpeg/commit
fftools: Switch to const AVCodec * where possible
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 25 Feb 2021 04:02:39 +0000 (05:02 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 2 Mar 2021 07:20:10 +0000 (08:20 +0100)
commit988deae6da70e3c24d8e75d75e300e49981599b7
tree3df96584ffa6bab6affaa61132ec83d2dff53068
parentc17915fd64f7e5d138820681c58c84b047336f13
fftools: Switch to const AVCodec * where possible

The obstacle to do so was in filter_codec_opts: It uses searches
the AVCodec for options via the AV_OPT_SEARCH_FAKE_OBJ method, which
requires using a void * that points to a pointer to a const AVClass.
When using const AVCodec *, one can not simply use a pointer that points
to the AVCodec's pointer to its AVClass, as said pointer is const, too.
This is fixed by using a temporary pointer to the AVClass.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
fftools/cmdutils.c
fftools/cmdutils.h
fftools/ffmpeg.c
fftools/ffmpeg.h
fftools/ffmpeg_opt.c
fftools/ffplay.c
fftools/ffprobe.c