aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-02-03 17:03:39 +0000
committerPaul B Mahol <onemda@gmail.com>2013-02-03 17:05:31 +0000
commit773fc6e0c7122740c3dd6530df6406282ced34da (patch)
tree04c1ab7f05ea5c7d98c07aa0a0b6d282eaf7b090 /libavfilter
parent4d37d2bfc53cf8b3eb9a8a2d3b8ab0d4277e5e55 (diff)
downloadffmpeg-773fc6e0c7122740c3dd6530df6406282ced34da.tar.gz
lavfi/showspectrum: set default height to 512
Only power-of-two FFTs are supported; so to get a full spectrum (that is, one up to Nyquist), the height must be a power of two. Therefore, change the default height from 480 to 512. Signed-off-by: Rudolf Polzer <divverent@xonotic.org>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avf_showspectrum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 977fca92a6..d8aed0d773 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -51,8 +51,8 @@ typedef struct {
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
static const AVOption showspectrum_options[] = {
- { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0, FLAGS },
- { "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0, FLAGS },
+ { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x512"}, 0, 0, FLAGS },
+ { "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x512"}, 0, 0, FLAGS },
{ "slide", "set sliding mode", OFFSET(sliding), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, FLAGS },
{ NULL },
};