[FFmpeg-devel] [PATCH 1/2] ffmpeg: fix parse_option() string memleak.
Clément Bœsch
ubitux at gmail.com
Fri Jan 13 01:56:31 CET 2012
---
ffmpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 997333e..94f23d1 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);
}
--
1.7.8.3
More information about the ffmpeg-devel
mailing list