[FFmpeg-cvslog] cmdutils: fix an opt name/val swap in set_context_opts()

Etienne Buira git at videolan.org
Sat Jul 2 12:00:18 CEST 2011


ffmpeg | branch: master | Etienne Buira <etienne.buira.lists at free.fr> | Fri Jul  1 22:44:53 2011 +0200| [3db9002f36ab1b40e75e28410650133a44bfe023] | committer: Stefano Sabatini

cmdutils: fix an opt name/val swap in set_context_opts()

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala at poste.it>

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

 cmdutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cmdutils.c b/cmdutils.c
index a3f643b..53266d4 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -494,7 +494,7 @@ void set_context_opts(void *ctx, void *opts_ctx, int flags, AVCodec *codec)
             if (av_find_opt(priv_ctx, opt_names[i], NULL, flags, flags)) {
                 if (av_set_string3(priv_ctx, opt_names[i], opt_values[i], 1, NULL) < 0) {
                     fprintf(stderr, "Invalid value '%s' for option '%s'\n",
-                            opt_names[i], opt_values[i]);
+                            opt_values[i], opt_names[i]);
                     exit(1);
                 }
             } else



More information about the ffmpeg-cvslog mailing list