changeset 36580:0462f5c5aa00

demux_mkv: use a default mime-type if none was specified.
author reimar
date Mon, 20 Jan 2014 22:08:46 +0000
parents c11abb032606
children 292a9e879fd0
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Mon Jan 20 22:08:45 2014 +0000
+++ b/libmpdemux/demux_mkv.c	Mon Jan 20 22:08:46 2014 +0000
@@ -1287,7 +1287,7 @@
                 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);