mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/[vf_nnedi, vf_estdif]: check interlaced flag on correct frame
Fixes regression in vf_nnedi after
24dc6d386c and vf_estdif while at it.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
parent
03a8d9c7fd
commit
b7e350af3e
2 changed files with 2 additions and 2 deletions
|
|
@ -498,7 +498,7 @@ static int config_input(AVFilterLink *inlink)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if ((s->deint && !in->interlaced_frame) || ctx->is_disabled) {
|
||||
if ((s->deint && !s->prev->interlaced_frame) || ctx->is_disabled) {
|
||||
s->prev->pts *= 2;
|
||||
ret = ff_filter_frame(ctx->outputs[0], s->prev);
|
||||
s->prev = in;
|
||||
|
|
|
|||
|
|
@ -694,7 +694,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if ((s->deint && !in->interlaced_frame) || ctx->is_disabled) {
|
||||
if ((s->deint && !s->prev->interlaced_frame) || ctx->is_disabled) {
|
||||
s->prev->pts *= 2;
|
||||
ret = ff_filter_frame(ctx->outputs[0], s->prev);
|
||||
s->prev = in;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue