mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavfi/stereo3d: remove pointless store
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9429408cc1
commit
83253431b7
@ -332,7 +332,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
|||||||
AVFrame *out;
|
AVFrame *out;
|
||||||
int out_off_left, out_off_right;
|
int out_off_left, out_off_right;
|
||||||
int in_off_left, in_off_right;
|
int in_off_left, in_off_right;
|
||||||
int ret;
|
|
||||||
|
|
||||||
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
|
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
@ -414,18 +413,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
|||||||
av_assert0(0);
|
av_assert0(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ff_filter_frame(outlink, out);
|
|
||||||
av_frame_free(&inpicref);
|
av_frame_free(&inpicref);
|
||||||
if (ret < 0)
|
return ff_filter_frame(outlink, out);
|
||||||
return ret;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const AVFilterPad stereo3d_inputs[] = {
|
static const AVFilterPad stereo3d_inputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.get_video_buffer = ff_null_get_video_buffer,
|
|
||||||
.filter_frame = filter_frame,
|
.filter_frame = filter_frame,
|
||||||
},
|
},
|
||||||
{ NULL }
|
{ NULL }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user