diff options
author | jstebbins <[email protected]> | 2014-01-06 18:58:03 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-01-06 18:58:03 +0000 |
commit | 4b8e7cd0e3c3a9ef9fe5ff5a986d1dda77ceb3c9 (patch) | |
tree | 7f289c20807c37b45674b57bd0d6f59dee7ced53 /libhb/fifo.c | |
parent | b90ef6a6ccef4df001506375414882ed4deac993 (diff) |
libhb: use av_pix_fmt_desc_get
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5954 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/fifo.c')
-rw-r--r-- | libhb/fifo.c | 6 |
1 files 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,}; |