ffplay: warn that -pix_fmt is no longer working, suggest alternative
Also remove now unused variable. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
a4e540c4f5
commit
0a858048af
@@ -69,7 +69,8 @@ also sources and sinks).
|
|||||||
@section Advanced options
|
@section Advanced options
|
||||||
@table @option
|
@table @option
|
||||||
@item -pix_fmt @var{format}
|
@item -pix_fmt @var{format}
|
||||||
Set pixel format.
|
This option has been removed. Use private options for specifying the
|
||||||
|
input pixel format.
|
||||||
@item -stats
|
@item -stats
|
||||||
Show the stream duration, the codec parameters, the current position in
|
Show the stream duration, the codec parameters, the current position in
|
||||||
the stream and the audio/video synchronisation drift.
|
the stream and the audio/video synchronisation drift.
|
||||||
|
6
ffplay.c
6
ffplay.c
@@ -226,7 +226,6 @@ static int fs_screen_width;
|
|||||||
static int fs_screen_height;
|
static int fs_screen_height;
|
||||||
static int screen_width = 0;
|
static int screen_width = 0;
|
||||||
static int screen_height = 0;
|
static int screen_height = 0;
|
||||||
static enum PixelFormat frame_pix_fmt = PIX_FMT_NONE;
|
|
||||||
static int audio_disable;
|
static int audio_disable;
|
||||||
static int video_disable;
|
static int video_disable;
|
||||||
static int wanted_stream[AVMEDIA_TYPE_NB]={
|
static int wanted_stream[AVMEDIA_TYPE_NB]={
|
||||||
@@ -2850,8 +2849,9 @@ static int opt_format(const char *opt, const char *arg)
|
|||||||
|
|
||||||
static int opt_frame_pix_fmt(const char *opt, const char *arg)
|
static int opt_frame_pix_fmt(const char *opt, const char *arg)
|
||||||
{
|
{
|
||||||
frame_pix_fmt = av_get_pix_fmt(arg);
|
av_log(NULL, AV_LOG_ERROR,
|
||||||
return 0;
|
"Option '%s' has been removed, use private format options instead\n", opt);
|
||||||
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int opt_sync(const char *opt, const char *arg)
|
static int opt_sync(const char *opt, const char *arg)
|
||||||
|
Reference in New Issue
Block a user