lavfi/framesync: remove dead code.
Fix CID 1416960.
This commit is contained in:
parent
9bad5e5319
commit
549ef6ef9a
@ -380,15 +380,13 @@ int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1)
|
|||||||
{
|
{
|
||||||
AVFilterContext *ctx = fs->parent;
|
AVFilterContext *ctx = fs->parent;
|
||||||
AVFrame *mainpic = NULL, *secondpic = NULL;
|
AVFrame *mainpic = NULL, *secondpic = NULL;
|
||||||
int ret = 0;
|
int ret;
|
||||||
|
|
||||||
if ((ret = ff_framesync_get_frame(fs, 0, &mainpic, 1)) < 0 ||
|
if ((ret = ff_framesync_get_frame(fs, 0, &mainpic, 1)) < 0 ||
|
||||||
(ret = ff_framesync_get_frame(fs, 1, &secondpic, 0)) < 0) {
|
(ret = ff_framesync_get_frame(fs, 1, &secondpic, 0)) < 0) {
|
||||||
av_frame_free(&mainpic);
|
av_frame_free(&mainpic);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
av_assert0(mainpic);
|
av_assert0(mainpic);
|
||||||
mainpic->pts = av_rescale_q(fs->pts, fs->time_base, ctx->outputs[0]->time_base);
|
mainpic->pts = av_rescale_q(fs->pts, fs->time_base, ctx->outputs[0]->time_base);
|
||||||
if (ctx->is_disabled)
|
if (ctx->is_disabled)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user