From 4b8e7cd0e3c3a9ef9fe5ff5a986d1dda77ceb3c9 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 6 Jan 2014 18:58:03 +0000 Subject: [PATCH] libhb: use av_pix_fmt_desc_get git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5954 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/fifo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libhb/fifo.c b/libhb/fifo.c index a30d66e9a..a782ebb25 100644 --- a/libhb/fifo.c +++ b/libhb/fifo.c @@ -511,7 +511,7 @@ static void hb_buffer_init_planes_internal( hb_buffer_t * b, uint8_t * has_plane void hb_buffer_init_planes( hb_buffer_t * b ) { - const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[b->f.fmt]; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(b->f.fmt); int p; uint8_t has_plane[4] = {0,}; @@ -527,7 +527,7 @@ void hb_buffer_init_planes( hb_buffer_t * b ) // with pixel format pix_fmt and dimensions width x height. hb_buffer_t * hb_frame_buffer_init( int pix_fmt, int width, int height ) { - const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt]; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); hb_buffer_t * buf; int p; uint8_t has_plane[4] = {0,}; @@ -566,7 +566,7 @@ hb_buffer_t * hb_frame_buffer_init( int pix_fmt, int width, int height ) // with dimensions width x height. void hb_video_buffer_realloc( hb_buffer_t * buf, int width, int height ) { - const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[buf->f.fmt]; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(buf->f.fmt); int p; uint8_t has_plane[4] = {0,}; -- 2.40.0