[FFmpeg-cvslog] lavfi/transpose: restore validity of values in range 4-7
Stefano Sabatini
git at videolan.org
Sat Apr 27 20:37:13 CEST 2013
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Apr 27 19:28:36 2013 +0200| [d33c77b14aec73ea6705f873eac9df4825ccfff3] | committer: Stefano Sabatini
lavfi/transpose: restore validity of values in range 4-7
They were lost in commit a4e0defa75b6f766aa31d80c55688d036b5fd87b.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d33c77b14aec73ea6705f873eac9df4825ccfff3
---
libavfilter/vf_transpose.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c
index 2b1fa1f..85d4d2c 100644
--- a/libavfilter/vf_transpose.c
+++ b/libavfilter/vf_transpose.c
@@ -227,8 +227,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
static const AVOption transpose_options[] = {
- { "dir", "Transpose direction", OFFSET(dir), AV_OPT_TYPE_INT, { .i64 = TRANSPOSE_CCLOCK_FLIP },
- TRANSPOSE_CCLOCK_FLIP, TRANSPOSE_CLOCK_FLIP, FLAGS, "dir" },
+ { "dir", "Transpose direction", OFFSET(dir), AV_OPT_TYPE_INT, { .i64 = TRANSPOSE_CCLOCK_FLIP }, 0, 7, FLAGS, "dir" },
{ "cclock_flip", "counter-clockwise with vertical flip", 0, AV_OPT_TYPE_CONST, { .i64 = TRANSPOSE_CCLOCK_FLIP }, .unit = "dir" },
{ "clock", "clockwise", 0, AV_OPT_TYPE_CONST, { .i64 = TRANSPOSE_CLOCK }, .unit = "dir" },
{ "cclock", "counter-clockwise", 0, AV_OPT_TYPE_CONST, { .i64 = TRANSPOSE_CCLOCK }, .unit = "dir" },
More information about the ffmpeg-cvslog
mailing list