lavc/screenpresso: Fix 32bit pix_fmt, there is no transparency.

Fixes a remaining issue of ticket #5025.
This commit is contained in:
Carl Eugen Hoyos 2016-08-13 01:35:10 +02:00
parent 777697a62c
commit bc70312654
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
* rebuilt frame (not the reference), and since there is no coordinate system * rebuilt frame (not the reference), and since there is no coordinate system
* they contain exactly as many pixel as the keyframe. * they contain exactly as many pixel as the keyframe.
* *
* Supports: BGRA, BGR24, RGB555 * Supports: BGR0, BGR24, RGB555
*/ */
#include <stdint.h> #include <stdint.h>
@ -129,7 +129,7 @@ static int screenpresso_decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = AV_PIX_FMT_BGR24; avctx->pix_fmt = AV_PIX_FMT_BGR24;
break; break;
case 4: case 4:
avctx->pix_fmt = AV_PIX_FMT_BGRA; avctx->pix_fmt = AV_PIX_FMT_BGR0;
break; break;
default: default:
av_log(avctx, AV_LOG_ERROR, "Invalid bits per pixel value (%d)\n", av_log(avctx, AV_LOG_ERROR, "Invalid bits per pixel value (%d)\n",

View File

@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 57 #define LIBAVCODEC_VERSION_MAJOR 57
#define LIBAVCODEC_VERSION_MINOR 51 #define LIBAVCODEC_VERSION_MINOR 51
#define LIBAVCODEC_VERSION_MICRO 100 #define LIBAVCODEC_VERSION_MICRO 101
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \ LIBAVCODEC_VERSION_MINOR, \