[FFmpeg-cvslog] tools: stop using deprecated av_codec_next()
Josh de Kock
git at videolan.org
Mon Apr 20 18:43:27 EEST 2020
ffmpeg | branch: master | Josh de Kock <josh at itanimul.li> | Tue Apr 14 13:34:53 2020 +0100| [39962072a83eb846d8f2aa7757a0ff33cc3dad51] | committer: Josh de Kock
tools: stop using deprecated av_codec_next()
Signed-off-by: Josh de Kock <josh at itanimul.li>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39962072a83eb846d8f2aa7757a0ff33cc3dad51
---
tools/enum_options.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/enum_options.c b/tools/enum_options.c
index 28631d1a6b..548e427b7a 100644
--- a/tools/enum_options.c
+++ b/tools/enum_options.c
@@ -113,13 +113,14 @@ static void show_format_opts(void)
static void show_codec_opts(void)
{
+ void *iter = NULL;
AVCodec *c = NULL;
printf("@section Generic codec AVOptions\n");
show_opts(avcodec_get_class());
printf("@section Codec-specific AVOptions\n");
- while ((c = av_codec_next(c))) {
+ while ((c = av_codec_iterate(&iter))) {
if (!c->priv_class)
continue;
printf("@subsection %s AVOptions\n", c->priv_class->class_name);
More information about the ffmpeg-cvslog
mailing list