You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
lavfi: remove some video w/h settings after avfilter_copy_buffer_ref_props.
video->[wh] will be set with the same values as the input after avfilter_copy_buffer_ref_props. These filters don't change the size of the input so there is no need for this code.
This commit is contained in:
@@ -229,11 +229,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
|
||||
avfilter_unref_bufferp(&in);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
avfilter_copy_buffer_ref_props(out, in);
|
||||
|
||||
out->video->w = outlink->w;
|
||||
out->video->h = outlink->h;
|
||||
}
|
||||
|
||||
for (plane = 0; plane < 4 && in->data[plane]; plane++) {
|
||||
|
@@ -198,10 +198,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
|
||||
avfilter_unref_bufferp(&in);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
avfilter_copy_buffer_ref_props(out, in);
|
||||
out->video->w = outlink->w;
|
||||
out->video->h = outlink->h;
|
||||
}
|
||||
|
||||
for (p = 0; p < 4 && in->data[p]; p++) {
|
||||
|
@@ -338,10 +338,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
|
||||
avfilter_unref_bufferp(&in);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
avfilter_copy_buffer_ref_props(out, in);
|
||||
out->video->w = outlink->w;
|
||||
out->video->h = outlink->h;
|
||||
}
|
||||
|
||||
for (c = 0; c < 3; c++) {
|
||||
|
Reference in New Issue
Block a user