]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: copy codec_tag when stream copy
authorSteven Liu <lq@chinaffmpeg.org>
Wed, 5 Jul 2017 03:20:21 +0000 (11:20 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 5 Jul 2017 03:20:21 +0000 (11:20 +0800)
commit1fe40e73a67c703f574545bcb4573e3c695b7ed6
tree9e2024093c2a2378aae0b83e4c85b4cf801de167
parentd01b8f8683df9d56d4f4d997de2f9c24050b96e3
avformat/hlsenc: copy codec_tag when stream copy

when use fmp4 segment type in hls and use codec copy,
there have an error message.
error message:
   [mp4 @ 0x25df020] Tag avc1 incompatible with output codec id '28' ([33][0][0][0])
   [hls @ 0x2615c80] Some of the provided format options in '(null)' are not recognized
   Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
this patch can fix it.

Signed-off-by: Liu Qi <w_liuqi@kingsoft.com>
Signed-off-by: Steven Liu <lq@onvideo.cn>
libavformat/hlsenc.c