You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
tools: stop using deprecated av_codec_next()
Signed-off-by: Josh de Kock <josh@itanimul.li>
This commit is contained in:
@@ -113,13 +113,14 @@ static void show_format_opts(void)
|
|||||||
|
|
||||||
static void show_codec_opts(void)
|
static void show_codec_opts(void)
|
||||||
{
|
{
|
||||||
|
void *iter = NULL;
|
||||||
AVCodec *c = NULL;
|
AVCodec *c = NULL;
|
||||||
|
|
||||||
printf("@section Generic codec AVOptions\n");
|
printf("@section Generic codec AVOptions\n");
|
||||||
show_opts(avcodec_get_class());
|
show_opts(avcodec_get_class());
|
||||||
|
|
||||||
printf("@section Codec-specific AVOptions\n");
|
printf("@section Codec-specific AVOptions\n");
|
||||||
while ((c = av_codec_next(c))) {
|
while ((c = av_codec_iterate(&iter))) {
|
||||||
if (!c->priv_class)
|
if (!c->priv_class)
|
||||||
continue;
|
continue;
|
||||||
printf("@subsection %s AVOptions\n", c->priv_class->class_name);
|
printf("@subsection %s AVOptions\n", c->priv_class->class_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user