summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-06-25 13:35:46 +0200
committerClément Bœsch <u@pkh.me>2016-06-25 13:35:46 +0200
commit11ee8a4504992965fb0db9cb0f513e93601d68bf (patch)
treed112ac3f0e95cb326c6127b8ac8f95c1ef6ad060 /ffmpeg.c
parente13134c730bddc24e6d536f6da07ae370c99c532 (diff)
ffmpeg: do not use deprecated AVSubtitleRect.pict
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 4564a62876..9ffd833a91 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -197,15 +197,15 @@ static void sub2video_copy_rect(uint8_t *dst, int dst_linesize, int w, int h,
}
dst += r->y * dst_linesize + r->x * 4;
- src = r->pict.data[0];
- pal = (uint32_t *)r->pict.data[1];
+ src = r->data[0];
+ pal = (uint32_t *)r->data[1];
for (y = 0; y < r->h; y++) {
dst2 = (uint32_t *)dst;
src2 = src;
for (x = 0; x < r->w; x++)
*(dst2++) = pal[*(src2++)];
dst += dst_linesize;
- src += r->pict.linesize[0];
+ src += r->linesize[0];
}
}