summaryrefslogtreecommitdiffstats
path: root/libhb/decpgssub.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/decpgssub.c')
-rw-r--r--libhb/decpgssub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c
index 9efb83009..f3cf60cf0 100644
--- a/libhb/decpgssub.c
+++ b/libhb/decpgssub.c
@@ -441,8 +441,8 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
uint8_t color;
pixel = yy * rect->w + xx;
- color = rect->pict.data[0][pixel];
- argb = ((uint32_t*)rect->pict.data[1])[color];
+ color = rect->data[0][pixel];
+ argb = ((uint32_t*)rect->data[1])[color];
yuv = hb_rgb2yuv(argb);
lum[xx] = (yuv >> 16) & 0xff;