Commit 9d2e0ad8 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Remove use of deprecated functions av_image_fill_pointers/linesizes in

libavcodec/utils.c, fix warnings.

Originally committed as revision 25069 to svn://
parent 4afbcf46
......@@ -283,7 +283,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
do {
// NOTE: do not align linesizes individually, this breaks e.g. assumptions
// that linesize[0] == 2*linesize[1] in the MPEG-encoder for 4:2:2
av_fill_image_linesizes(picture.linesize, s->pix_fmt, w);
av_image_fill_linesizes(picture.linesize, s->pix_fmt, w);
// increase alignment of w for next try (rhs gives the lowest bit set in w)
w += w & ~(w-1);
......@@ -293,7 +293,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
} while (unaligned);
tmpsize = av_fill_image_pointers(, s->pix_fmt, h, NULL, picture.linesize);
tmpsize = av_image_fill_pointers(, s->pix_fmt, h, NULL, picture.linesize);
if (tmpsize < 0)
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment