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
471 src = s->stages[i].frame;471 src = s->stages[i].frame;
472 last_stage = i;472 last_stage = i;
473 }473 }
474
475 if (last_stage < 0)474 if (last_stage < 0)
476 return AVERROR_BUG;475 return AVERROR_BUG;
476
477 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0);477 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0);
478 if (ret < 0)478 if (ret < 0)
479 return ret;479 return ret;
480 480
481 s->tmp_frame->width = src->width;
482 s->tmp_frame->height = src->height;
483
481 av_frame_move_ref(out, src);484 av_frame_move_ref(out, src);
482 av_frame_move_ref(src, s->tmp_frame);485 av_frame_move_ref(src, s->tmp_frame);
483 486

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