summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-01-13 01:49:41 +0100
committerClément Bœsch <ubitux@gmail.com>2012-01-13 16:22:16 +0100
commit2a81e0c2ad887b85991e71d35a75928677677c51 (patch)
treea574941fd19887b6826462747bd16c090d6cf7fb /ffmpeg.c
parent3a1df393b8a1ee9304a34fbc4134a2a27e2b1f12 (diff)
ffmpeg: fix parse_option() string memleak.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2ee4032b39..125a143993 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4875,7 +4875,7 @@ static int opt_bitrate(OptionsContext *o, const char *opt, const char *arg)
{
if(!strcmp(opt, "b")){
av_log(0,AV_LOG_WARNING, "Please use -b:a or -b:v, -b is ambiguous\n");
- return parse_option(o, av_strdup("b:v"), arg, options);
+ return parse_option(o, "b:v", arg, options);
}
return opt_default(opt, arg);
}