Commit fdcb2873 authored by Florent Le Coz's avatar Florent Le Coz Committed by Michael Niedermayer

Fix the mime types for MPEG and MPEG-TS formats

As per the RFCs:
http://tools.ietf.org/html/rfc3555#page-38
http://tools.ietf.org/html/rfc3003
parent c081ca85
...@@ -384,7 +384,7 @@ static int query_codec(enum AVCodecID id, int std_compliance) ...@@ -384,7 +384,7 @@ static int query_codec(enum AVCodecID id, int std_compliance)
AVOutputFormat ff_mp2_muxer = { AVOutputFormat ff_mp2_muxer = {
.name = "mp2", .name = "mp2",
.long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
.mime_type = "audio/x-mpeg", .mime_type = "audio/mpeg",
.extensions = "mp2,m2a,mpa", .extensions = "mp2,m2a,mpa",
.audio_codec = AV_CODEC_ID_MP2, .audio_codec = AV_CODEC_ID_MP2,
.video_codec = AV_CODEC_ID_NONE, .video_codec = AV_CODEC_ID_NONE,
...@@ -526,7 +526,7 @@ static int mp3_write_header(struct AVFormatContext *s) ...@@ -526,7 +526,7 @@ static int mp3_write_header(struct AVFormatContext *s)
AVOutputFormat ff_mp3_muxer = { AVOutputFormat ff_mp3_muxer = {
.name = "mp3", .name = "mp3",
.long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"), .long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
.mime_type = "audio/x-mpeg", .mime_type = "audio/mpeg",
.extensions = "mp3", .extensions = "mp3",
.priv_data_size = sizeof(MP3Context), .priv_data_size = sizeof(MP3Context),
.audio_codec = AV_CODEC_ID_MP3, .audio_codec = AV_CODEC_ID_MP3,
......
...@@ -1393,7 +1393,7 @@ static int mpegts_write_end(AVFormatContext *s) ...@@ -1393,7 +1393,7 @@ static int mpegts_write_end(AVFormatContext *s)
AVOutputFormat ff_mpegts_muxer = { AVOutputFormat ff_mpegts_muxer = {
.name = "mpegts", .name = "mpegts",
.long_name = NULL_IF_CONFIG_SMALL("MPEG-TS (MPEG-2 Transport Stream)"), .long_name = NULL_IF_CONFIG_SMALL("MPEG-TS (MPEG-2 Transport Stream)"),
.mime_type = "video/x-mpegts", .mime_type = "video/MP2T",
.extensions = "ts,m2t,m2ts,mts", .extensions = "ts,m2t,m2ts,mts",
.priv_data_size = sizeof(MpegTSWrite), .priv_data_size = sizeof(MpegTSWrite),
.audio_codec = AV_CODEC_ID_MP2, .audio_codec = AV_CODEC_ID_MP2,
......
...@@ -269,7 +269,7 @@ AVOutputFormat ff_mlp_muxer = { ...@@ -269,7 +269,7 @@ AVOutputFormat ff_mlp_muxer = {
AVOutputFormat ff_mpeg1video_muxer = { AVOutputFormat ff_mpeg1video_muxer = {
.name = "mpeg1video", .name = "mpeg1video",
.long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"), .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
.mime_type = "video/x-mpeg", .mime_type = "video/mpeg",
.extensions = "mpg,mpeg,m1v", .extensions = "mpg,mpeg,m1v",
.audio_codec = AV_CODEC_ID_NONE, .audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_MPEG1VIDEO, .video_codec = AV_CODEC_ID_MPEG1VIDEO,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment