]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/imgconvert.c
ljpegdec: fix point transform injection.
[ffmpeg] / libavcodec / imgconvert.c
index 64b083885795d1c0ec03fcffdf0affa42fd4a124..2279875db2a89fd771fca6fdc0af0e2a1e38bea2 100644 (file)
@@ -747,6 +747,7 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width,
     return 0;
 }
 
+#if FF_API_GET_ALPHA_INFO
 /* NOTE: we scan all the pixels to have an exact information */
 static int get_alpha_info_pal8(const AVPicture *src, int width, int height)
 {
@@ -793,6 +794,7 @@ int img_get_alpha_info(const AVPicture *src,
     }
     return ret;
 }
+#endif
 
 #if !(HAVE_MMX && HAVE_YASM)
 /* filter parameters: [-1 4 2 4 -1] // 8 */