mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vf_scale: Request an aligned buffer.
Fixes Ticket594 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d7dcd96a23
commit
3e4375833d
@ -253,7 +253,7 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
|
||||
scale->hsub = av_pix_fmt_descriptors[link->format].log2_chroma_w;
|
||||
scale->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h;
|
||||
|
||||
outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
|
||||
outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE|AV_PERM_ALIGN, outlink->w, outlink->h);
|
||||
avfilter_copy_buffer_ref_props(outpicref, picref);
|
||||
outpicref->video->w = outlink->w;
|
||||
outpicref->video->h = outlink->h;
|
||||
|
Loading…
Reference in New Issue
Block a user