diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-24 23:14:01 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-24 23:14:01 +0000 |
commit | 2bc05d35470d5a18f9c6d2d10be9c1c8ddc2f634 (patch) | |
tree | c861f42870be72be249487c5b9f5b6e65bc9f143 /ffmpeg.c | |
parent | d66a546f77391cbac6e0453f4d76791ed94a61a2 (diff) | |
download | ffmpeg-2bc05d35470d5a18f9c6d2d10be9c1c8ddc2f634.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |