diff options
author | Connor Worley <connorbworley@gmail.com> | 2024-02-14 21:44:38 -0800 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-02-18 07:30:01 +0100 |
commit | 1487f6198c87dc8a31d185ecda9ddf00a59c6c53 (patch) | |
tree | acf44df0eee4964831c3d352f45b9ae63d0bf845 /libavcodec/texturedsp.h | |
parent | 0895ef0d6d6406ee6cd158fc4d47d80f201b8e9c (diff) | |
download | ffmpeg-1487f6198c87dc8a31d185ecda9ddf00a59c6c53.tar.gz |
lavc/texturedsp: require explicitly-set frame dimensions
This change decouples the frame dimensions from avctx, which is useful
for DXV decoding, and fixes incorrect behavior in the existing
implementation.
Tested with `make fate THREADS=7` and
`make fate THREADS=7 THREAD_TYPE=slice`.
Signed-off-by: Connor Worley <connorbworley@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/texturedsp.h')
-rw-r--r-- | libavcodec/texturedsp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/texturedsp.h b/libavcodec/texturedsp.h index 86c8eea02d..0bf49e8729 100644 --- a/libavcodec/texturedsp.h +++ b/libavcodec/texturedsp.h @@ -72,6 +72,7 @@ typedef struct TextureDSPThreadContext { uint8_t *out; // Output frame data } frame_data; ptrdiff_t stride; // Frame linesize + int width, height; // Frame width / height union { const uint8_t *in; // Compressed texture for decompression uint8_t *out; // Compressed texture of compression |