mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-19 21:40:21 +08:00
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
This commit is contained in:
6
ffmpeg.c
6
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)
|
||||
|
Reference in New Issue
Block a user