[MPlayer-cvslog] r25932 - trunk/libmpdemux/demux_lavf.c

eugeni subversion at mplayerhq.hu
Wed Jan 30 09:10:25 CET 2008


Author: eugeni
Date: Wed Jan 30 09:10:25 2008
New Revision: 25932

Log:
Add support for attachments in lavf demuxer.


Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	(original)
+++ trunk/libmpdemux/demux_lavf.c	Wed Jan 30 09:10:25 2008
@@ -435,6 +435,13 @@ static void handle_stream(demuxer_t *dem
             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;
     }



More information about the MPlayer-cvslog mailing list