[vlc-commits] avformat: missing cast, fix format

Rémi Denis-Courmont git at videolan.org
Thu Jan 17 17:56:20 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 17 18:56:07 2019 +0200| [17717547a4effd0fa722125491a5d2bacc6039c7] | committer: Rémi Denis-Courmont

avformat: missing cast, fix format

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17717547a4effd0fa722125491a5d2bacc6039c7
---

 modules/demux/avformat/mux.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 97b80b8c85..e2e256d9de 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -293,7 +293,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
             video_format_Copy(&vfmt, &fmt->video);
             video_format_FixRgb(&vfmt);
             if(GetFfmpegChroma(&codecpar->format, &vfmt))
-                msg_Warn(p_mux, "can't match format RAW video %4.4s", &vfmt.i_chroma);
+                msg_Warn(p_mux, "can't match format RAW video %4.4s",
+                         (const char *)&vfmt.i_chroma);
             video_format_Clean(&vfmt);
         }
         if (fmt->i_bitrate == 0) {



More information about the vlc-commits mailing list