[FFmpeg-cvslog] ffmpeg: fix parse_option() string memleak.
Clément Bœsch
git at videolan.org
Fri Jan 13 16:22:45 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Jan 13 01:49:41 2012 +0100| [2a81e0c2ad887b85991e71d35a75928677677c51] | committer: Clément Bœsch
ffmpeg: fix parse_option() string memleak.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2a81e0c2ad887b85991e71d35a75928677677c51
---
ffmpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 2ee4032..125a143 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);
}
More information about the ffmpeg-cvslog
mailing list