Revision 71e445fc vhook/imlib2.c

View differences:

vhook/imlib2.c
340 340
    imlib_context_set_image(image);
341 341
    data = imlib_image_get_data();
342 342

  
343
        avpicture_fill(&picture1, (uint8_t *) data, PIX_FMT_RGBA32, width, height);
343
        avpicture_fill(&picture1, (uint8_t *) data, PIX_FMT_RGB32, width, height);
344 344

  
345 345
    // if we already got a SWS context, let's realloc if is not re-useable
346 346
    ci->toRGB_convert_ctx = sws_getCachedContext(ci->toRGB_convert_ctx,
347 347
                                width, height, pix_fmt,
348
                                width, height, PIX_FMT_RGBA32,
348
                                width, height, PIX_FMT_RGB32,
349 349
                                sws_flags, NULL, NULL, NULL);
350 350
    if (ci->toRGB_convert_ctx == NULL) {
351 351
        av_log(NULL, AV_LOG_ERROR,
......
430 430
    }
431 431

  
432 432
    ci->fromRGB_convert_ctx = sws_getCachedContext(ci->fromRGB_convert_ctx,
433
                                    width, height, PIX_FMT_RGBA32,
433
                                    width, height, PIX_FMT_RGB32,
434 434
                                    width, height, pix_fmt,
435 435
                                    sws_flags, NULL, NULL, NULL);
436 436
    if (ci->fromRGB_convert_ctx == NULL) {

Also available in: Unified diff