[FFmpeg-devel] [PATCH 5/8] Make opt_frame_pix_fmt -pix_fmt list use avcodec_pix_fmt_string() rather than show_pix_fmt_list().

Stefano Sabatini stefano.sabatini-lala
Fri Nov 5 12:01:31 CET 2010


This allows to test avcodec_pix_fmt_string(), and is consistent with
opt_sample_fmt().
---
 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 8b1878b..4c8f50f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2746,7 +2746,7 @@ static void opt_frame_pix_fmt(const char *arg)
             ffmpeg_exit(1);
         }
     } else {
-        show_pix_fmts();
+        list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);
         ffmpeg_exit(0);
     }
 }
-- 
1.7.1




More information about the ffmpeg-devel mailing list