Mercurial > mplayer.hg
changeset 25900:0190494dfdb2
Add support for attachments in lavf demuxer.
author | eugeni |
---|---|
date | Wed, 30 Jan 2008 08:10:25 +0000 |
parents | 9d4121fa508a |
children | c2210e68a2a9 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Wed Jan 30 07:21:05 2008 +0000 +++ b/libmpdemux/demux_lavf.c Wed Jan 30 08:10:25 2008 +0000 @@ -435,6 +435,13 @@ demuxer->sub->sh = demuxer->s_streams[priv->sub_streams++]; break; } + case CODEC_TYPE_ATTACHMENT:{ + if (st->codec->codec_id == CODEC_ID_TTF) + demuxer_add_attachment(demuxer, st->filename, + "application/x-truetype-font", + codec->extradata, codec->extradata_size); + break; + } default: st->discard= AVDISCARD_ALL; }