[FFmpeg-cvslog] lavu/opt: show default values for AV_OPT_TYPE_PIXEL_FMT and AV_OPT_TYPE_SAMPLE_FMT too

Paul B Mahol git at videolan.org
Thu Jul 25 22:42:21 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jul 25 13:59:24 2013 +0000| [fd84b6fd3389ffe3f1841e58438f60f114742771] | committer: Paul B Mahol

lavu/opt: show default values for AV_OPT_TYPE_PIXEL_FMT and AV_OPT_TYPE_SAMPLE_FMT too

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavutil/opt.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 191ac2d..afa0c0e 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -961,6 +961,12 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
                 AVRational q = av_d2q(opt->default_val.dbl, INT_MAX);
                 av_log(av_log_obj, AV_LOG_INFO, "%d/%d", q.num, q.den); }
                 break;
+            case AV_OPT_TYPE_PIXEL_FMT:
+                av_log(av_log_obj, AV_LOG_INFO, "%s", av_x_if_null(av_get_pix_fmt_name(opt->default_val.i64), "none"));
+                break;
+            case AV_OPT_TYPE_SAMPLE_FMT:
+                av_log(av_log_obj, AV_LOG_INFO, "%s", av_x_if_null(av_get_sample_fmt_name(opt->default_val.i64), "none"));
+                break;
             case AV_OPT_TYPE_COLOR:
             case AV_OPT_TYPE_IMAGE_SIZE:
             case AV_OPT_TYPE_STRING:



More information about the ffmpeg-cvslog mailing list