summaryrefslogtreecommitdiff
path: root/libavcodec/screenpresso.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-13 01:35:10 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-13 01:35:10 +0200
commitbc7031265441a47595eadc39a44080e4e1fe208f (patch)
tree50d05dfb0eff8967eb7174e0bdaa063f6ae59c2b /libavcodec/screenpresso.c
parent777697a62c00fe17093f383388aaccaca486be93 (diff)
lavc/screenpresso: Fix 32bit pix_fmt, there is no transparency.
Fixes a remaining issue of ticket #5025.
Diffstat (limited to 'libavcodec/screenpresso.c')
-rw-r--r--libavcodec/screenpresso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/screenpresso.c b/libavcodec/screenpresso.c
index 34efb03867..2fadca46b7 100644
--- a/libavcodec/screenpresso.c
+++ b/libavcodec/screenpresso.c
@@ -30,7 +30,7 @@
* rebuilt frame (not the reference), and since there is no coordinate system
* they contain exactly as many pixel as the keyframe.
*
- * Supports: BGRA, BGR24, RGB555
+ * Supports: BGR0, BGR24, RGB555
*/
#include <stdint.h>
@@ -129,7 +129,7 @@ static int screenpresso_decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = AV_PIX_FMT_BGR24;
break;
case 4:
- avctx->pix_fmt = AV_PIX_FMT_BGRA;
+ avctx->pix_fmt = AV_PIX_FMT_BGR0;
break;
default:
av_log(avctx, AV_LOG_ERROR, "Invalid bits per pixel value (%d)\n",