[MPlayer-cvslog] r38657 - trunk/mplayer.c

cigaes subversion at mplayerhq.hu
Sat Sep 21 12:30:15 EEST 2024


Author: cigaes
Date: Sat Sep 21 12:30:15 2024
New Revision: 38657

Log:
mplayer: explicit pointer casts

Recent compilers consider implicit casts an error.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Sep 21 12:30:14 2024	(r38656)
+++ trunk/mplayer.c	Sat Sep 21 12:30:15 2024	(r38657)
@@ -3538,7 +3538,7 @@ goto_enable_cache:
                 break;
             if ((mpctx->demuxer->file_format == DEMUXER_TYPE_AVI || mpctx->demuxer->file_format == DEMUXER_TYPE_ASF || mpctx->demuxer->file_format == DEMUXER_TYPE_MOV)
                 && stream_dump_type == 2)
-                stream_write_buffer(os, &in_size, 4);
+                stream_write_buffer(os, (unsigned char *)&in_size, 4);
             if (in_size > 0) {
                 stream_write_buffer(os, start, in_size);
                 stream_dump_progress(in_size, mpctx->stream);


More information about the MPlayer-cvslog mailing list