Message ID | CALdTkGEc9Vw=Hu+pLXH_u+irsNiefkJ=7Vu2M=KXNMXTi0tM2A@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Sat, May 11, 2019 at 12:19:22PM +0200, Robert Nagy wrote: > --- > libavfilter/vf_thumbnail.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c > index 0effdc91e9..30bb0dfdb8 100644 > --- a/libavfilter/vf_thumbnail.c > +++ b/libavfilter/vf_thumbnail.c > @@ -136,6 +136,7 @@ static int filter_frame(AVFilterLink *inlink, > AVFrame *frame) > AVFilterLink *outlink = ctx->outputs[0]; > int *hist = s->frames[s->n].histogram; > const uint8_t *p = frame->data[0]; > + int stride = frame->format == AV_PIX_FMT_BGRA || frame->format == > AV_PIX_FMT_RGBA ? 4 : 3; Applying: vf_thumbnail: support alpha error: corrupt patch at line 10 error: could not build fake ancestor Patch failed at 0001 vf_thumbnail: support alpha hint: Use 'git am --show-current-patch' to see the failed patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". [...]
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c index 0effdc91e9..30bb0dfdb8 100644 --- a/libavfilter/vf_thumbnail.c +++ b/libavfilter/vf_thumbnail.c @@ -136,6 +136,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) AVFilterLink *outlink = ctx->outputs[0]; int *hist = s->frames[s->n].histogram; const uint8_t *p = frame->data[0]; + int stride = frame->format == AV_PIX_FMT_BGRA || frame->format == AV_PIX_FMT_RGBA ? 4 : 3;