The branch, master has been updated
       via  e293091d982f38783edf0e8a2c7eb7e91e68248b (commit)
      from  41a9c6ec5f75d8737da3e38223b8c4e923703401 (commit)


- Log -----------------------------------------------------------------
commit e293091d982f38783edf0e8a2c7eb7e91e68248b
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Nov 14 12:31:11 2025 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Nov 14 14:27:53 2025 +0100

    avcodec/prores_raw: Reuse permutation
    
    The ProresDSPContext already contains the idct_permutation.
    
    Reviewed-by: Lynne <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>

diff --git a/libavcodec/prores_raw.c b/libavcodec/prores_raw.c
index 65e0576619..9bc76da698 100644
--- a/libavcodec/prores_raw.c
+++ b/libavcodec/prores_raw.c
@@ -43,7 +43,6 @@
 static av_cold int decode_init(AVCodecContext *avctx)
 {
     ProResRAWContext *s = avctx->priv_data;
-    uint8_t idct_permutation[64];
 
     avctx->bits_per_raw_sample = 12;
     avctx->color_primaries = AVCOL_PRI_UNSPECIFIED;
@@ -55,10 +54,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     ff_blockdsp_init(&s->bdsp);
     ff_proresdsp_init(&s->prodsp, avctx->bits_per_raw_sample);
 
-    ff_init_scantable_permutation(idct_permutation,
-                                  s->prodsp.idct_permutation_type);
-
-    ff_permute_scantable(s->scan, ff_prores_interlaced_scan, idct_permutation);
+    ff_permute_scantable(s->scan, ff_prores_interlaced_scan, 
s->prodsp.idct_permutation);
 
     return 0;
 }

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/prores_raw.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to