* [FFmpeg-devel] [PATCH 0/1] lavc/exr: decode_block() fails when input resolution not
@ 2024-07-26 14:58 tonetechnician
2024-07-26 14:58 ` [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8 tonetechnician
0 siblings, 1 reply; 4+ messages in thread
From: tonetechnician @ 2024-07-26 14:58 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Sean Devonport
From: Sean Devonport <tonetechnician@gmail.com>
This fixes the commit message body wrapping between lines 60 and 72
Sean Devonport (1):
lavc/exr: decode_block() fails when input resolution not exactly
divisable by 8
libavcodec/exr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.39.3 (Apple Git-146)
_______________________________________________
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".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8
2024-07-26 14:58 [FFmpeg-devel] [PATCH 0/1] lavc/exr: decode_block() fails when input resolution not tonetechnician
@ 2024-07-26 14:58 ` tonetechnician
0 siblings, 0 replies; 4+ messages in thread
From: tonetechnician @ 2024-07-26 14:58 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Sean Devonport
From: Sean Devonport <tonetechnician@gmail.com>
This stops decode_block() from failing when the .exr resolution is not divisable by 8 (e.g 108x192).
The dc_w and dc_h needs to be round up and not down.
---
libavcodec/exr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 4bac0be89b..5df2c55609 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -987,8 +987,8 @@ static int dwa_uncompress(const EXRContext *s, const uint8_t *src, int compresse
int64_t version, lo_usize, lo_size;
int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size;
int64_t ac_count, dc_count, ac_compression;
- const int dc_w = td->xsize >> 3;
- const int dc_h = td->ysize >> 3;
+ const int dc_w = (td->xsize + 7) >> 3;
+ const int dc_h = (td->ysize + 7) >> 3;
GetByteContext gb, agb;
int skip, ret;
--
2.39.3 (Apple Git-146)
_______________________________________________
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".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8
2024-07-26 15:07 [FFmpeg-devel] [PATCH 0/1] lavc/exr: decode_block() fails when input resolution not tonetechnician
@ 2024-07-26 15:07 ` tonetechnician
0 siblings, 0 replies; 4+ messages in thread
From: tonetechnician @ 2024-07-26 15:07 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Sean Devonport
From: Sean Devonport <tonetechnician@gmail.com>
This stops decode_block() from failing when the .exr resolution is not divisable by 8 (e.g 108x192).
The dc_w and dc_h needs to be round up and not down.
---
libavcodec/exr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 4bac0be89b..5df2c55609 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -987,8 +987,8 @@ static int dwa_uncompress(const EXRContext *s, const uint8_t *src, int compresse
int64_t version, lo_usize, lo_size;
int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size;
int64_t ac_count, dc_count, ac_compression;
- const int dc_w = td->xsize >> 3;
- const int dc_h = td->ysize >> 3;
+ const int dc_w = (td->xsize + 7) >> 3;
+ const int dc_h = (td->ysize + 7) >> 3;
GetByteContext gb, agb;
int skip, ret;
--
2.39.3 (Apple Git-146)
_______________________________________________
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".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8
2024-07-26 8:50 [FFmpeg-devel] [PATCH 0/1] Sending my broken patch via git tonetechnician
@ 2024-07-26 8:50 ` tonetechnician
0 siblings, 0 replies; 4+ messages in thread
From: tonetechnician @ 2024-07-26 8:50 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Sean Devonport
From: Sean Devonport <tonetechnician@gmail.com>
This stops decode_block() from failing when the .exr resolution is not divisable by 8 (e.g 108x192). The dc_w and dc_h needs to be round up and not down.
---
libavcodec/exr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 4bac0be89b..5df2c55609 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -987,8 +987,8 @@ static int dwa_uncompress(const EXRContext *s, const uint8_t *src, int compresse
int64_t version, lo_usize, lo_size;
int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size;
int64_t ac_count, dc_count, ac_compression;
- const int dc_w = td->xsize >> 3;
- const int dc_h = td->ysize >> 3;
+ const int dc_w = (td->xsize + 7) >> 3;
+ const int dc_h = (td->ysize + 7) >> 3;
GetByteContext gb, agb;
int skip, ret;
--
2.39.3 (Apple Git-146)
_______________________________________________
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".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-26 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-26 14:58 [FFmpeg-devel] [PATCH 0/1] lavc/exr: decode_block() fails when input resolution not tonetechnician
2024-07-26 14:58 ` [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8 tonetechnician
-- strict thread matches above, loose matches on Subject: below --
2024-07-26 15:07 [FFmpeg-devel] [PATCH 0/1] lavc/exr: decode_block() fails when input resolution not tonetechnician
2024-07-26 15:07 ` [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8 tonetechnician
2024-07-26 8:50 [FFmpeg-devel] [PATCH 0/1] Sending my broken patch via git tonetechnician
2024-07-26 8:50 ` [FFmpeg-devel] [PATCH 1/1] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8 tonetechnician
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git