[FFmpeg-devel] [PATCH 3/3] ffmpeg_opt: add warning if .avpreset file is used
Timothy Gu
timothygu99 at gmail.com
Sat Feb 22 22:50:39 CET 2014
Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
ffmpeg_opt.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index a5670ab..afeea3d 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1003,11 +1003,17 @@ static int get_preset_file_2(const char *preset_name, const char *codec_name, AV
snprintf(filename, sizeof(filename), "%s%s/%s-%s.avpreset", base[i],
i != 2 ? "" : "/.avconv", codec_name, preset_name);
ret = avio_open2(s, filename, AVIO_FLAG_READ, &int_cb, NULL);
+ if (ret >= 0)
+ av_log(NULL, AV_LOG_WARNING,
+ "Support for reading .avpreset files are purely for compatibility");
}
if (ret < 0) {
snprintf(filename, sizeof(filename), "%s%s/%s.avpreset", base[i],
i != 2 ? "" : "/.avconv", preset_name);
ret = avio_open2(s, filename, AVIO_FLAG_READ, &int_cb, NULL);
+ if (ret >= 0)
+ av_log(NULL, AV_LOG_WARNING,
+ "Support for reading .avpreset files are purely for compatibility");
}
}
return ret;
--
1.8.3.2
More information about the ffmpeg-devel
mailing list