[FFmpeg-devel] [PATCH 2/7] avcodec/dsd: Use double for LUTs

2024-04-01 Thread Andreas Rheinhardt
Needed to make DSD->PCM conversion bitexact across arches.

Signed-off-by: Andreas Rheinhardt 
---
 libavcodec/dsd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dsd.c b/libavcodec/dsd.c
index e039302c99..ec63a706f6 100644
--- a/libavcodec/dsd.c
+++ b/libavcodec/dsd.c
@@ -68,7 +68,7 @@ static const double htaps[HTAPS] = {
  3.423230509967409e-07,  1.244182214744588e-07,  3.130441005359396e-08
 };
 
-static float ctables[CTABLES][256];
+static double ctables[CTABLES][256];
 
 static av_cold void dsd_ctables_tableinit(void)
 {
-- 
2.40.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] [PATCH 2/7] avcodec/dsd: Use double for LUTs

2024-04-01 Thread Andreas Rheinhardt
Needed to make DSD->PCM conversion bitexact across arches.

Signed-off-by: Andreas Rheinhardt 
---
 libavcodec/dsd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dsd.c b/libavcodec/dsd.c
index e039302c99..ec63a706f6 100644
--- a/libavcodec/dsd.c
+++ b/libavcodec/dsd.c
@@ -68,7 +68,7 @@ static const double htaps[HTAPS] = {
  3.423230509967409e-07,  1.244182214744588e-07,  3.130441005359396e-08
 };
 
-static float ctables[CTABLES][256];
+static double ctables[CTABLES][256];
 
 static av_cold void dsd_ctables_tableinit(void)
 {
-- 
2.40.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".