summaryrefslogtreecommitdiff
path: root/vhook/imlib2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-02-07 01:48:09 +0000
committerDiego Biurrun <diego@biurrun.de>2007-02-07 01:48:09 +0000
commit71e445fca3ccc1285068386bf9858d180b0fecfc (patch)
tree230f6ba62bf0a9af096cad7c2a7c332b066e2965 /vhook/imlib2.c
parent917fa192c72e226ffaddefbe6661ec3c405156cf (diff)
Replace deprecated PIX_FMT names by the newer variants.
Originally committed as revision 7867 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/imlib2.c')
-rw-r--r--vhook/imlib2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vhook/imlib2.c b/vhook/imlib2.c
index 1c137724f5..868182de5e 100644
--- a/vhook/imlib2.c
+++ b/vhook/imlib2.c
@@ -340,12 +340,12 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
imlib_context_set_image(image);
data = imlib_image_get_data();
- avpicture_fill(&picture1, (uint8_t *) data, PIX_FMT_RGBA32, width, height);
+ avpicture_fill(&picture1, (uint8_t *) data, PIX_FMT_RGB32, width, height);
// if we already got a SWS context, let's realloc if is not re-useable
ci->toRGB_convert_ctx = sws_getCachedContext(ci->toRGB_convert_ctx,
width, height, pix_fmt,
- width, height, PIX_FMT_RGBA32,
+ width, height, PIX_FMT_RGB32,
sws_flags, NULL, NULL, NULL);
if (ci->toRGB_convert_ctx == NULL) {
av_log(NULL, AV_LOG_ERROR,
@@ -430,7 +430,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
}
ci->fromRGB_convert_ctx = sws_getCachedContext(ci->fromRGB_convert_ctx,
- width, height, PIX_FMT_RGBA32,
+ width, height, PIX_FMT_RGB32,
width, height, pix_fmt,
sws_flags, NULL, NULL, NULL);
if (ci->fromRGB_convert_ctx == NULL) {