diff options
author | Jun Zhao <mypopydev@gmail.com> | 2018-04-01 22:29:46 +0800 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2018-04-02 02:19:26 +0100 |
commit | 9b125826ed7eda54387c06469c081229b222ee59 (patch) | |
tree | eb0369d7e7e849f67bfe7da0359bcabfd261d277 | |
parent | db85d657faabf8e5ce7690ddbe6325ec430c61e7 (diff) | |
download | ffmpeg-9b125826ed7eda54387c06469c081229b222ee59.tar.gz |
cmdutils: fix new API break the "ffmpeg -muxers/demuxers"
fix commit 2238190 break the "ffmpeg -muxers/demuxers".
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>
-rw-r--r-- | fftools/cmdutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index a6cf002fd0..1001f36299 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -1278,7 +1278,7 @@ static int show_formats_devices(void *optctx, const char *opt, const char *arg, const char *long_name = NULL; if (muxdemuxers !=SHOW_DEMUXERS) { - ifmt_opaque = NULL; + ofmt_opaque = NULL; while ((ofmt = av_muxer_iterate(&ofmt_opaque))) { is_dev = is_device(ofmt->priv_class); if (!is_dev && device_only) @@ -1292,7 +1292,7 @@ static int show_formats_devices(void *optctx, const char *opt, const char *arg, } } if (muxdemuxers != SHOW_MUXERS) { - ofmt_opaque = NULL; + ifmt_opaque = NULL; while ((ifmt = av_demuxer_iterate(&ifmt_opaque))) { is_dev = is_device(ifmt->priv_class); if (!is_dev && device_only) |