[MPlayer-cvslog] r36676 - trunk/libmpdemux/demux_mkv.c

reimar subversion at mplayerhq.hu
Mon Jan 20 23:08:46 CET 2014


Author: reimar
Date: Mon Jan 20 23:08:46 2014
New Revision: 36676

Log:
demux_mkv: use a default mime-type if none was specified.

Modified:
   trunk/libmpdemux/demux_mkv.c

Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	Mon Jan 20 23:08:45 2014	(r36675)
+++ trunk/libmpdemux/demux_mkv.c	Mon Jan 20 23:08:46 2014	(r36676)
@@ -1287,7 +1287,7 @@ static int demux_mkv_read_attachments(de
                 len -= l + il;
             }
 
-            demuxer_add_attachment(demuxer, name, mime, data, data_size);
+            demuxer_add_attachment(demuxer, name, mime ? mime : "application/octet-stream", data, data_size);
             mp_msg(MSGT_DEMUX, MSGL_V,
                    "[mkv] Attachment: %s, %s, %u bytes\n", name, mime,
                    data_size);


More information about the MPlayer-cvslog mailing list