diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-01-09 20:50:06 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-01-09 21:07:49 +0100 |
commit | a800fd5fc797b8bdfc943b0c7bbfccac3d2ea30a (patch) | |
tree | 75f4b9b71234ad6468216625e0edac9c65e48691 /libavformat | |
parent | fba8e5b608577fc660989d0057a55818254a3744 (diff) | |
download | ffmpeg-a800fd5fc797b8bdfc943b0c7bbfccac3d2ea30a.tar.gz |
yuv4mpeg: do not use deprecated functions
Use the libavutil replacement.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/yuv4mpeg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index a8077a00f0..699a63a681 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -18,6 +18,8 @@ * License along with Libav; 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" @@ -128,8 +130,8 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt) if (st->codec->pix_fmt != AV_PIX_FMT_GRAY8) { // 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; |