From d3b940b0ff21fd9c734a050541f6958089f1a24b Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 25 Mar 2025 05:30:13 +0100 Subject: [PATCH] avcodec/rv10: Make logmessage endian-independent Also fix a potential effective-type violation. Signed-off-by: Andreas Rheinhardt --- libavcodec/rv10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 4df545aec0..482af8e52a 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -394,7 +394,7 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx) if (avctx->debug & FF_DEBUG_PICT_INFO) { av_log(avctx, AV_LOG_DEBUG, "ver:%X ver0:%"PRIX32"\n", rv->sub_id, - ((uint32_t *) avctx->extradata)[0]); + AV_RL32A(avctx->extradata)); } /* init static VLCs */