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,};
// 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,};
// 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,};