[FFmpeg-cvslog] avfilter/scale_npp: fix non-aligned output frame dimensions
ffmpeg | branch: release/3.4 | Timo Rothenpieler | Thu Oct 7 17:41:44 2021 +0200| [11388838ff8dd49d69039d1d667159280b10d652] | committer: Timo Rothenpieler avfilter/scale_npp: fix non-aligned output frame dimensions > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=11388838ff8dd49d69039d1d667159280b10d652 --- libavfilter/vf_scale_npp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 8a277ce8e1..86279f5b36 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -472,13 +472,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) src= s->stages[i].frame; last_stage = i; } - if (last_stage < 0) return AVERROR_BUG; + ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); if (ret < 0) return ret; +s->tmp_frame->width = src->width; +s->tmp_frame->height = src->height; + av_frame_move_ref(out, src); av_frame_move_ref(src, s->tmp_frame); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-cvslog] avfilter/scale_npp: fix non-aligned output frame dimensions
ffmpeg | branch: release/4.1 | Timo Rothenpieler | Thu Oct 7 17:41:44 2021 +0200| [0699b0836d00dd2b6d7e6161babaea9e2c1bd709] | committer: Timo Rothenpieler avfilter/scale_npp: fix non-aligned output frame dimensions > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0699b0836d00dd2b6d7e6161babaea9e2c1bd709 --- libavfilter/vf_scale_npp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 8a277ce8e1..86279f5b36 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -472,13 +472,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) src= s->stages[i].frame; last_stage = i; } - if (last_stage < 0) return AVERROR_BUG; + ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); if (ret < 0) return ret; +s->tmp_frame->width = src->width; +s->tmp_frame->height = src->height; + av_frame_move_ref(out, src); av_frame_move_ref(src, s->tmp_frame); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-cvslog] avfilter/scale_npp: fix non-aligned output frame dimensions
ffmpeg | branch: release/4.2 | Timo Rothenpieler | Thu Oct 7 17:41:44 2021 +0200| [2e68ac694cbded97d3e4a8b5b52fc4d45e7e1610] | committer: Timo Rothenpieler avfilter/scale_npp: fix non-aligned output frame dimensions > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e68ac694cbded97d3e4a8b5b52fc4d45e7e1610 --- libavfilter/vf_scale_npp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index a3e085764a..f363853432 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -475,13 +475,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) src= s->stages[i].frame; last_stage = i; } - if (last_stage < 0) return AVERROR_BUG; + ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); if (ret < 0) return ret; +s->tmp_frame->width = src->width; +s->tmp_frame->height = src->height; + av_frame_move_ref(out, src); av_frame_move_ref(src, s->tmp_frame); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-cvslog] avfilter/scale_npp: fix non-aligned output frame dimensions
ffmpeg | branch: release/4.3 | Timo Rothenpieler | Thu Oct 7 17:41:44 2021 +0200| [d9cb7c62b6937ec4c66f466e45b7dda70f30cae9] | committer: Timo Rothenpieler avfilter/scale_npp: fix non-aligned output frame dimensions > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9cb7c62b6937ec4c66f466e45b7dda70f30cae9 --- libavfilter/vf_scale_npp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 502ecfda94..34debc3135 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -481,13 +481,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) src= s->stages[i].frame; last_stage = i; } - if (last_stage < 0) return AVERROR_BUG; + ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); if (ret < 0) return ret; +s->tmp_frame->width = src->width; +s->tmp_frame->height = src->height; + av_frame_move_ref(out, src); av_frame_move_ref(src, s->tmp_frame); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-cvslog] avfilter/scale_npp: fix non-aligned output frame dimensions
ffmpeg | branch: release/4.4 | Timo Rothenpieler | Thu Oct 7 17:41:44 2021 +0200| [c989427c168b95997ef7366a6cef98f4b40acc66] | committer: Timo Rothenpieler avfilter/scale_npp: fix non-aligned output frame dimensions > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c989427c168b95997ef7366a6cef98f4b40acc66 --- libavfilter/vf_scale_npp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 502ecfda94..34debc3135 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -481,13 +481,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) src= s->stages[i].frame; last_stage = i; } - if (last_stage < 0) return AVERROR_BUG; + ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); if (ret < 0) return ret; +s->tmp_frame->width = src->width; +s->tmp_frame->height = src->height; + av_frame_move_ref(out, src); av_frame_move_ref(src, s->tmp_frame); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-cvslog] avfilter/scale_npp: fix non-aligned output frame dimensions
ffmpeg | branch: master | Timo Rothenpieler | Thu Oct 7 17:41:44 2021 +0200| [37745b49049d4dbb5aa4ea84bcc289ed511971f9] | committer: Timo Rothenpieler avfilter/scale_npp: fix non-aligned output frame dimensions > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37745b49049d4dbb5aa4ea84bcc289ed511971f9 --- libavfilter/vf_scale_npp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 4d056d6afa..8da335154c 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -471,13 +471,16 @@ static int nppscale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) src= s->stages[i].frame; last_stage = i; } - if (last_stage < 0) return AVERROR_BUG; + ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); if (ret < 0) return ret; +s->tmp_frame->width = src->width; +s->tmp_frame->height = src->height; + av_frame_move_ref(out, src); av_frame_move_ref(src, s->tmp_frame); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".