X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fyuv4mpeg.c;h=ff039bd37a6377f8d4fb6f92940759154cfb1c64;hb=1b03e09198e5db75064b202e00bd77f84fa47063;hp=9c9c7fa8fe6272e4e841f73a7c6a20a361da3071;hpb=249fca3df9f9790369d38aaa63c828c3e2a30936;p=ffmpeg diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index 9c9c7fa8fe6..ff039bd37a6 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -18,6 +18,8 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + +#include "libavutil/pixdesc.h" #include "avformat.h" #include "internal.h" #include "libavutil/pixdesc.h" @@ -211,8 +213,8 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt) if (st->codec->pix_fmt != AV_PIX_FMT_GRAY8 && st->codec->pix_fmt != AV_PIX_FMT_GRAY16) { // Adjust for smaller Cb and Cr planes - avcodec_get_chroma_sub_sample(st->codec->pix_fmt, &h_chroma_shift, - &v_chroma_shift); + av_pix_fmt_get_chroma_sub_sample(st->codec->pix_fmt, &h_chroma_shift, + &v_chroma_shift); width >>= h_chroma_shift; height >>= v_chroma_shift;