diff options
author | Martin Storsjö <martin@martin.st> | 2014-05-15 22:43:46 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-05-17 02:34:16 +0400 |
commit | 34e2ce5dde073244ccb2b62f930e96fe612690f7 (patch) | |
tree | 9e980431a99fd622e37e77857d90fe78fd8c95ee /libavformat/hlsenc.c | |
parent | 4d25c2bc76f0a708c2ba470b6bfeb547efe37115 (diff) |
hlsenc: Set the default codecs to AAC and H264
Most HLS implementation only support these codecs.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index d36d3fb65e..aa38d05462 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -342,8 +342,8 @@ AVOutputFormat ff_hls_muxer = { .long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"), .extensions = "m3u8", .priv_data_size = sizeof(HLSContext), - .audio_codec = AV_CODEC_ID_MP2, - .video_codec = AV_CODEC_ID_MPEG2VIDEO, + .audio_codec = AV_CODEC_ID_AAC, + .video_codec = AV_CODEC_ID_H264, .flags = AVFMT_NOFILE | AVFMT_ALLOW_FLUSH, .write_header = hls_write_header, .write_packet = hls_write_packet, |