Mercurial > mplayer.hg
changeset 23482:3106b3d65f17
Fix segfault when encoding from an mkv file with embedded fonts.
Patch by Dominique Dumont (domi dumont at free fr).
author | eugeni |
---|---|
date | Thu, 07 Jun 2007 22:45:41 +0000 |
parents | 7fe2f7fa524f |
children | 04cb37f259e7 |
files | libmpdemux/demux_mkv.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c Thu Jun 07 21:20:44 2007 +0000 +++ b/libmpdemux/demux_mkv.c Thu Jun 07 22:45:41 2007 +0000 @@ -1533,7 +1533,8 @@ "[mkv] Attachment: %s, %s, %u bytes\n", name, mime, data_size); #ifdef USE_ASS - if (extract_embedded_fonts && name && data && data_size && + if (ass_library && + extract_embedded_fonts && name && data && data_size && mime && (strcmp(mime, "application/x-truetype-font") == 0 || strcmp(mime, "application/x-font") == 0)) ass_add_font(ass_library, name, data, data_size);