You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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:
@ -1375,7 +1375,7 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
|
|||||||
|
|
||||||
for (c = 0; c < channel_count; c++) {
|
for (c = 0; c < channel_count; c++) {
|
||||||
int plane = s->desc->comp[c].plane;
|
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]) {
|
for (i = 0; i < ysize; i++, ptr += p->linesize[plane]) {
|
||||||
const uint8_t *src;
|
const uint8_t *src;
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
#codec_id 0: rawvideo
|
#codec_id 0: rawvideo
|
||||||
#dimensions 0: 50x50
|
#dimensions 0: 50x50
|
||||||
#sar 0: 1/1
|
#sar 0: 1/1
|
||||||
0, 0, 0, 1, 30000, 0xa02a541c
|
0, 0, 0, 1, 30000, 0xef01f54f
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
#codec_id 0: rawvideo
|
#codec_id 0: rawvideo
|
||||||
#dimensions 0: 501x401
|
#dimensions 0: 501x401
|
||||||
#sar 0: 1/1
|
#sar 0: 1/1
|
||||||
0, 0, 0, 1, 2410812, 0x0deb5853
|
0, 0, 0, 1, 2410812, 0x30fd8688
|
||||||
|
Reference in New Issue
Block a user