avcodec/exr: use the correct step value for plane pointers

Fixes a regression since 0e917389fe.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2025-03-05 12:59:34 -03:00
parent 0e917389fe
commit 5560a20d77
3 changed files with 3 additions and 3 deletions

View File

@ -1375,7 +1375,7 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
for (c = 0; c < channel_count; c++) {
int plane = s->desc->comp[c].plane;
ptr = p->data[plane] + window_ymin * p->linesize[plane] + (window_xmin * 4);
ptr = p->data[plane] + window_ymin * p->linesize[plane] + (window_xmin * step);
for (i = 0; i < ysize; i++, ptr += p->linesize[plane]) {
const uint8_t *src;

View File

@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 50x50
#sar 0: 1/1
0, 0, 0, 1, 30000, 0xa02a541c
0, 0, 0, 1, 30000, 0xef01f54f

View File

@ -3,4 +3,4 @@
#codec_id 0: rawvideo
#dimensions 0: 501x401
#sar 0: 1/1
0, 0, 0, 1, 2410812, 0x0deb5853
0, 0, 0, 1, 2410812, 0x30fd8688