Created
August 3, 2019 14:39
-
-
Save leandromoreira/36e83fe172f0d829c037e61a5fbab693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct AVInputFormat { | |
const char *name; | |
const char *long_name; | |
const char *extensions; | |
const char *mime_type; | |
ff_const59 struct AVInputFormat *next; | |
int raw_codec_id; | |
int priv_data_size; | |
int (*read_probe)(const AVProbeData *); | |
int (*read_header)(struct AVFormatContext *); | |
} | |
// matroska | |
AVInputFormat ff_matroska_demuxer = { | |
.name = "matroska,webm", | |
.long_name = NULL_IF_CONFIG_SMALL("Matroska / WebM"), | |
.extensions = "mkv,mk3d,mka,mks", | |
.priv_data_size = sizeof(MatroskaDemuxContext), | |
.read_probe = matroska_probe, | |
.read_header = matroska_read_header, | |
.read_packet = matroska_read_packet, | |
.read_close = matroska_read_close, | |
.read_seek = matroska_read_seek, | |
.mime_type = "audio/webm,audio/x-matroska,video/webm,video/x-matroska" | |
}; | |
// mov (mp4) | |
AVInputFormat ff_mov_demuxer = { | |
.name = "mov,mp4,m4a,3gp,3g2,mj2", | |
.long_name = NULL_IF_CONFIG_SMALL("QuickTime / MOV"), | |
.priv_class = &mov_class, | |
.priv_data_size = sizeof(MOVContext), | |
.extensions = "mov,mp4,m4a,3gp,3g2,mj2", | |
.read_probe = mov_probe, | |
.read_header = mov_read_header, | |
.read_packet = mov_read_packet, | |
.read_close = mov_read_close, | |
.read_seek = mov_read_seek, | |
.flags = AVFMT_NO_BYTE_SEEK | AVFMT_SEEK_TO_PTS, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment