mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-08 21:48:20 +00:00
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:
parent
0e917389fe
commit
5560a20d77
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user