diff options
author | John Stebbins <[email protected]> | 2015-10-22 09:00:51 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-10-29 10:25:57 -0700 |
commit | ab93255f3c0c56d3fbadb26d2a1e3141c195acc0 (patch) | |
tree | 98108ed56a5e92a973a9d30ee267466a68e33c2c /libhb/decavcodec.c | |
parent | bd6d8dbba750419c4bb46b10f952cc405f7f5054 (diff) |
libhb: don't use deprecated AVPicture
libav just deprecated AVPicture and all av_picture_*/avpicture_*
functions.
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 474d672d2..bcfea83a8 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -920,8 +920,9 @@ static hb_buffer_t *copy_frame( hb_work_private_t *pv ) h != context->height) { // have to convert to our internal color space and/or rescale - AVPicture dstpic; - hb_avpicture_fill(&dstpic, buf); + uint8_t * data[4]; + int stride[4]; + hb_picture_fill(data, stride, buf); if (pv->sws_context == NULL || pv->sws_width != context->width || @@ -941,8 +942,7 @@ static hb_buffer_t *copy_frame( hb_work_private_t *pv ) } sws_scale(pv->sws_context, (const uint8_t* const *)pv->frame->data, - pv->frame->linesize, - 0, context->height, dstpic.data, dstpic.linesize); + pv->frame->linesize, 0, context->height, data, stride); } else { |