librsvgdec: Fix pix_fmt on big-endian hardware.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 16 May 2017 10:51:52 +0000 (12:51 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 16 May 2017 10:51:52 +0000 (12:51 +0200)
libavcodec/librsvgdec.c

index 29b771c..77c7710 100644 (file)
@@ -67,7 +67,7 @@ static int librsvg_decode_frame(AVCodecContext *avctx, void *data, int *got_fram
 
     if ((ret = ff_set_dimensions(avctx, dimensions.width, dimensions.height)))
         return ret;
-    avctx->pix_fmt = AV_PIX_FMT_BGRA;
+    avctx->pix_fmt = AV_PIX_FMT_RGB32;
 
     if ((ret = ff_get_buffer(avctx, frame, 0)))
         return ret;