[FFmpeg-cvslog] cmdutils: fix new API break the "ffmpeg -muxers/demuxers"

Jun Zhao git at videolan.org
Mon Apr 2 04:20:26 EEST 2018


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Sun Apr  1 22:29:46 2018 +0800| [9b125826ed7eda54387c06469c081229b222ee59] | committer: Josh de Kock

cmdutils: fix new API break the "ffmpeg -muxers/demuxers"

fix commit 2238190 break the "ffmpeg -muxers/demuxers".

Signed-off-by: Jun Zhao <mypopydev at gmail.com>
Signed-off-by: Josh de Kock <josh at itanimul.li>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b125826ed7eda54387c06469c081229b222ee59
---

 fftools/cmdutils.c | 4 ++--
 1 file 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)



More information about the ffmpeg-cvslog mailing list