ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Tue Mar 25 05:30:13 2025 +0100| [d3b940b0ff21fd9c734a050541f6958089f1a24b] | 
committer: Andreas Rheinhardt

avcodec/rv10: Make logmessage endian-independent

Also fix a potential effective-type violation.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3b940b0ff21fd9c734a050541f6958089f1a24b
---

 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 */

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to