[FFmpeg-cvslog] r25069 - trunk/libavcodec/utils.c
stefano
subversion
Tue Sep 7 23:24:03 CEST 2010
Author: stefano
Date: Tue Sep 7 23:24:03 2010
New Revision: 25069
Log:
Remove use of deprecated functions av_image_fill_pointers/linesizes in
libavcodec/utils.c, fix warnings.
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Tue Sep 7 23:23:59 2010 (r25068)
+++ trunk/libavcodec/utils.c Tue Sep 7 23:24:03 2010 (r25069)
@@ -283,7 +283,7 @@ int avcodec_default_get_buffer(AVCodecCo
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(AVCodecCo
}
} while (unaligned);
- tmpsize = av_fill_image_pointers(picture.data, s->pix_fmt, h, NULL, picture.linesize);
+ tmpsize = av_image_fill_pointers(picture.data, s->pix_fmt, h, NULL, picture.linesize);
if (tmpsize < 0)
return -1;
More information about the ffmpeg-cvslog
mailing list