Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().