Message ID | CAHMcQqY=2VpQU+s_FPqPfU_BmkHWN0-ohAuDLd5rWVE_MBbsVA@mail.gmail.com |
---|---|
State | New |
Headers | show |
fre 2019-03-29 klockan 22:23 +0000 skrev Matthew Fearnley: > > On Wed, 27 Mar 2019 at 09:42, Tomas Härdin <tjoppen@acc.umu.se> wrote: > > > Additional minor fix: use PTRDIFF_SPECIFIER for `src - c->decomp_buf`. > > > Other bit depths saw this change in ced0d6c14d, but this instance was > > > missed, presumably because of the #ifdef block. > > > > I think it'd be best to split this off into its own patch, even if it's > > trivial > > > > Yeah, I think you're right. > I'm attaching two patches here, if that works.. You got the commit messages mixed up :) Otherwise they look OK /Tomas
> On 1 Apr 2019, at 10:28, Tomas Härdin <tjoppen@acc.umu.se> wrote: > > fre 2019-03-29 klockan 22:23 +0000 skrev Matthew Fearnley: >>>> On Wed, 27 Mar 2019 at 09:42, Tomas Härdin <tjoppen@acc.umu.se> wrote: >>>> Additional minor fix: use PTRDIFF_SPECIFIER for `src - c->decomp_buf`. >>>> Other bit depths saw this change in ced0d6c14d, but this instance was >>>> missed, presumably because of the #ifdef block. >>> >>> I think it'd be best to split this off into its own patch, even if it's >>> trivial >>> >> >> Yeah, I think you're right. >> I'm attaching two patches here, if that works.. > > You got the commit messages mixed up :) Otherwise they look OK Doh! Do I need to correct that, or is it easy enough for you to fix up manually? > > /Tomas > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
mån 2019-04-01 klockan 13:29 +0100 skrev Matthew Fearnley: > > On 1 Apr 2019, at 10:28, Tomas Härdin <tjoppen@acc.umu.se> wrote: > > > > fre 2019-03-29 klockan 22:23 +0000 skrev Matthew Fearnley: > > > > > On Wed, 27 Mar 2019 at 09:42, Tomas Härdin <tjoppen@acc.umu.s > > > > > e> wrote: > > > > > Additional minor fix: use PTRDIFF_SPECIFIER for `src - c- > > > > > >decomp_buf`. > > > > > Other bit depths saw this change in ced0d6c14d, but this > > > > > instance was > > > > > missed, presumably because of the #ifdef block. > > > > > > > > I think it'd be best to split this off into its own patch, even > > > > if it's > > > > trivial > > > > > > > > > > Yeah, I think you're right. > > > I'm attaching two patches here, if that works.. > > > > You got the commit messages mixed up :) Otherwise they look OK > > Doh! > Do I need to correct that, or is it easy enough for you to fix up > manually? Easy enough to fix. I'll wait a day for more comments before pushing /Tomas
mån 2019-04-01 klockan 13:29 +0100 skrev Matthew Fearnley: > > > > On 1 Apr 2019, at 10:28, Tomas Härdin <tjoppen@acc.umu.se> wrote: > > > > fre 2019-03-29 klockan 22:23 +0000 skrev Matthew Fearnley: > > > > > On Wed, 27 Mar 2019 at 09:42, Tomas Härdin <tjoppen@acc.umu.se> wrote: > > > > > Additional minor fix: use PTRDIFF_SPECIFIER for `src - c->decomp_buf`. > > > > > Other bit depths saw this change in ced0d6c14d, but this instance was > > > > > missed, presumably because of the #ifdef block. > > > > > > > > I think it'd be best to split this off into its own patch, even if it's > > > > trivial > > > > > > > > > > Yeah, I think you're right. > > > I'm attaching two patches here, if that works.. > > > > You got the commit messages mixed up :) Otherwise they look OK > > Doh! > Do I need to correct that, or is it easy enough for you to fix up manually? Fixed and pushed. /Tomas
> On 2 Apr 2019, at 16:48, Tomas Härdin <tjoppen@acc.umu.se> wrote: > > mån 2019-04-01 klockan 13:29 +0100 skrev Matthew Fearnley: >>>>> On 1 Apr 2019, at 10:28, Tomas Härdin <tjoppen@acc.umu.se> wrote: >>> >>> fre 2019-03-29 klockan 22:23 +0000 skrev Matthew Fearnley: >>>>>> On Wed, 27 Mar 2019 at 09:42, Tomas Härdin <tjoppen@acc.umu.se> wrote: >>>>>> Additional minor fix: use PTRDIFF_SPECIFIER for `src - c->decomp_buf`. >>>>>> Other bit depths saw this change in ced0d6c14d, but this instance was >>>>>> missed, presumably because of the #ifdef block. >>>>> >>>>> I think it'd be best to split this off into its own patch, even if it's >>>>> trivial >>>>> >>>> >>>> Yeah, I think you're right. >>>> I'm attaching two patches here, if that works.. >>> >>> You got the commit messages mixed up :) Otherwise they look OK >> >> Doh! >> Do I need to correct that, or is it easy enough for you to fix up manually? > > Fixed and pushed. Thanks so much. By the way, is there a recommended way to enable #ifdef blocks when building ffmpeg? I’ve been adding #defines of the top of the source file, which does the job, but it feels like a bit of a kludge from a source-control perspective. > > /Tomas > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
2019-04-02 22:16 GMT+02:00, Matthew Fearnley <matthew.w.fearnley@gmail.com>: > By the way, is there a recommended way to enable #ifdef blocks > when building ffmpeg? --extra-cflags come to mind. Carl Eugen
From 905eb8b403281f180148bef50804af740d411b54 Mon Sep 17 00:00:00 2001 From: Matthew Fearnley <matthew.w.fearnley@gmail.com> Date: Fri, 29 Mar 2019 22:03:03 +0000 Subject: [PATCH 2/3] libavcodec/zmbv: use PTRDIFF_SPECIFIER for `src - c->decomp_buf`. Other bit depths saw this change in ced0d6c14d, but this instance was presumably missed because of the #ifdef block. --- libavcodec/zmbv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 71ec2cd424..898b62d065 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -473,7 +473,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac c->bpp = 24; decode_intra = zmbv_decode_intra; c->decode_xor = zmbv_decode_xor_24; - avctx->pix_fmt = AV_PIX_FMT_RGB24; + avctx->pix_fmt = AV_PIX_FMT_BGR24; c->stride = c->width * 3; break; #endif //ZMBV_ENABLE_24BPP -- 2.17.1