summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-24 23:14:01 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-24 23:14:01 +0000
commit2bc05d35470d5a18f9c6d2d10be9c1c8ddc2f634 (patch)
treec861f42870be72be249487c5b9f5b6e65bc9f143 /ffmpeg.c
parentd66a546f77391cbac6e0453f4d76791ed94a61a2 (diff)
Change the syntax of the crop filter from x:y:w:h to w:h:x:y.
Slightly more intuitive and required by a pending changes for making the filter parametric. Originally committed as revision 25184 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7fdf57b3d5..df9a99bca1 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -432,9 +432,9 @@ static int configure_filters(AVInputStream *ist, AVOutputStream *ost)
last_filter = ist->input_video_filter;
if (ost->video_crop) {
- snprintf(args, 255, "%d:%d:%d:%d", ost->leftBand, ost->topBand,
- codec->width,
- codec->height);
+ snprintf(args, 255, "%d:%d:%d:%d",
+ codec->width, codec->height,
+ ost->leftBand, ost->topBand);
if ((ret = avfilter_open(&filter, avfilter_get_by_name("crop"), NULL)) < 0)
return ret;
if ((ret = avfilter_init_filter(filter, args, NULL)) < 0)