History

avfilter/scale_npp: fix non-aligned output frame dimensions

Timo Rothenpieler committed 5 years ago

Commit 37745b41 parent ed084161 file · +4 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_scale_npp.c+4−1
@@ -471,13 +471,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) · 470 unmodified lines
471471 src = s->stages[i].frame;
472472 last_stage = i;
473473 }
474−
475474 if (last_stage < 0)
476475 return AVERROR_BUG;
476+
477477 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0);
478478 if (ret < 0)
479479 return ret;
480480
481+ s->tmp_frame->width = src->width;
482+ s->tmp_frame->height = src->height;
483+
481484 av_frame_move_ref(out, src);
482485 av_frame_move_ref(src, s->tmp_frame);
483486

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t