mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
librsvgdec: Fix pix_fmt on big-endian hardware.
This commit is contained in:
parent
5fd4cffe32
commit
66e56e7b2e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user