Commit 8cde94ec authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/flvenc: fix codec_id_text check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5dd4e644
......@@ -556,7 +556,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
if (enc->codec_type == AVMEDIA_TYPE_DATA) {
int data_size;
int64_t metadata_size_pos = avio_tell(pb);
if (enc->codec_type == AV_CODEC_ID_TEXT) {
if (enc->codec_id == AV_CODEC_ID_TEXT) {
// legacy FFmpeg magic?
avio_w8(pb, AMF_DATA_TYPE_STRING);
put_amf_string(pb, "onTextData");
......
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