Changeset ae4f6379 in ffmpeg
- Timestamp:
- Feb 25, 2021, 10:43:56 AM (4 years ago)
- Branches:
- master
- Children:
- 9e4225cf
- Parents:
- ac6dd87c
- git-author:
- Guo, Yejun <yejun.guo@intel.com> (02/25/21 06:38:12)
- git-committer:
- Paul B Mahol <onemda@gmail.com> (02/25/21 10:43:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libavfilter/vf_vif.c
rac6dd87c rae4f6379 540 540 VIFContext *s = fs->opaque; 541 541 AVFilterLink *outlink = ctx->outputs[0]; 542 AVFrame *out , *main = NULL, *ref= NULL;542 AVFrame *out_frame, *main_frame = NULL, *ref_frame = NULL; 543 543 int ret; 544 544 545 ret = ff_framesync_dualinput_get(fs, &main , &ref);545 ret = ff_framesync_dualinput_get(fs, &main_frame, &ref_frame); 546 546 if (ret < 0) 547 547 return ret; 548 548 549 if (ctx->is_disabled || !ref ) {550 out = main;549 if (ctx->is_disabled || !ref_frame) { 550 out_frame = main_frame; 551 551 } else { 552 out = do_vif(ctx, main, ref);553 } 554 555 out ->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);556 557 return ff_filter_frame(outlink, out );552 out_frame = do_vif(ctx, main_frame, ref_frame); 553 } 554 555 out_frame->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); 556 557 return ff_filter_frame(outlink, out_frame); 558 558 } 559 559
Note:
See TracChangeset
for help on using the changeset viewer.