diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-08-01 00:40:28 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-08-01 00:58:49 +0200 |
commit | 940a116b1f441b90e49886bfc07e0137ae342d5a (patch) | |
tree | c6c23f8f07c6a0d3212677d499c9d1a28ab513f1 /ffplay.c | |
parent | 8460b757c2c20b57d1dd1c1989086f942a261b4b (diff) | |
download | ffmpeg-940a116b1f441b90e49886bfc07e0137ae342d5a.tar.gz |
Unbreak ffplay -s and ffplay -pix_fmt.
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -2811,9 +2811,8 @@ static void event_loop(void) static int opt_frame_size(const char *opt, const char *arg) { - av_log(NULL, AV_LOG_ERROR, - "Option '%s' has been removed, use private format options instead\n", opt); - return AVERROR(EINVAL); + av_log(NULL, AV_LOG_WARNING, "Option -s is deprecated, use -video_size.\n"); + return opt_default("video_size", arg); } static int opt_width(const char *opt, const char *arg) @@ -2840,9 +2839,8 @@ static int opt_format(const char *opt, const char *arg) static int opt_frame_pix_fmt(const char *opt, const char *arg) { - av_log(NULL, AV_LOG_ERROR, - "Option '%s' has been removed, use private format options instead\n", opt); - return AVERROR(EINVAL); + av_log(NULL, AV_LOG_WARNING, "Option -pix_fmt is deprecated, use -pixel_format.\n"); + return opt_default("pixel_format", arg); } static int opt_sync(const char *opt, const char *arg) |