diff mbox series

[FFmpeg-devel] libavcodec/proresdec2: Setup qmat_chroma according to RDD36

Message ID 20200819203247.74910-1-harry.mallon@codex.online
State Accepted
Commit a606e3b3393dec611f3830d2397651a943280546
Headers show
Series [FFmpeg-devel] libavcodec/proresdec2: Setup qmat_chroma according to RDD36 | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Harry Mallon Aug. 19, 2020, 8:32 p.m. UTC
Signed-off-by: Harry Mallon <harry.mallon@codex.online>
---
 libavcodec/proresdec2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Aug. 20, 2020, 11:23 a.m. UTC | #1
On Wed, Aug 19, 2020 at 09:32:47PM +0100, Harry Mallon wrote:
> Signed-off-by: Harry Mallon <harry.mallon@codex.online>
> ---
>  libavcodec/proresdec2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thx

[...]
diff mbox series

Patch

diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c
index d5fbfc6711..4e1d0dd3f1 100644
--- a/libavcodec/proresdec2.c
+++ b/libavcodec/proresdec2.c
@@ -289,7 +289,7 @@  static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
         }
         permute(ctx->qmat_chroma, ctx->prodsp.idct_permutation, ptr);
     } else {
-        memset(ctx->qmat_chroma, 4, 64);
+        memcpy(ctx->qmat_chroma, ctx->qmat_luma, 64);
     }
 
     return hdr_size;