Unified · Split
| @@ -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 | ||