mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 06:20:29 +00:00
cmdutils: fix an opt name/val swap in set_context_opts()
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
This commit is contained in:
parent
5d35b279e2
commit
3db9002f36
@ -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_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) {
|
if (av_set_string3(priv_ctx, opt_names[i], opt_values[i], 1, NULL) < 0) {
|
||||||
fprintf(stderr, "Invalid value '%s' for option '%s'\n",
|
fprintf(stderr, "Invalid value '%s' for option '%s'\n",
|
||||||
opt_names[i], opt_values[i]);
|
opt_values[i], opt_names[i]);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user