Browse Source

hlsenc: Set the default codecs to AAC and H264

Most HLS implementation only support these codecs.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.3
Martin Storsjö 11 years ago
parent
commit
34e2ce5dde
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/hlsenc.c

+ 2
- 2
libavformat/hlsenc.c View File

@@ -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,


Loading…
Cancel
Save