Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().