2 * Copyright 2009-2010 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
6 #include "DemuxerTable.h"
7 #include "MuxerTable.h"
14 // NOTE: AVFormatReader uses this table only for better pretty names and
15 // the MIME type info, the latter which is unavailable from AVInputFormat.
18 const media_file_format
*
19 demuxer_format_for(AVInputFormat
* format
)
21 for (uint32 i
= 0; i
< gMuxerCount
; i
++) {
22 const media_file_format
* demuxerFormat
= &gMuxerTable
[i
];
24 if (!(demuxerFormat
->capabilities
& media_file_format::B_READABLE
))
27 if (strstr(format
->name
, demuxerFormat
->short_name
) != NULL
)