diff imgconvert.c @ 12387:e7de1ba6dbc0 libavcodec

Deprecate ff_get_plane_bytewidth() in favor of av_get_image_linesize().
author stefano
date Thu, 12 Aug 2010 15:06:04 +0000
parents b4b2f1006d9d
children e05e29a04ada
line wrap: on
line diff
--- a/imgconvert.c	Thu Aug 12 15:05:58 2010 +0000
+++ b/imgconvert.c	Thu Aug 12 15:06:04 2010 +0000
@@ -794,10 +794,12 @@
     }
 }
 
+#if LIBAVCODEC_VERSION_MAJOR < 53
 int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane)
 {
     return av_get_image_linesize(pix_fmt, width, plane);
 }
+#endif
 
 void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
                           uint8_t *src_data[4], int src_linesize[4],
@@ -812,7 +814,7 @@
     case FF_PIXEL_PLANAR:
         for(i = 0; i < pf->nb_channels; i++) {
             int h;
-            int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i);
+            int bwidth = av_get_image_linesize(pix_fmt, width, i);
             h = height;
             if (i == 1 || i == 2) {
                 h= -((-height)>>desc->log2_chroma_h);