avformat/flvenc: fix codec_id_text check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5dd4e644f3
commit
8cde94ec0d
@ -556,7 +556,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
if (enc->codec_type == AVMEDIA_TYPE_DATA) {
|
if (enc->codec_type == AVMEDIA_TYPE_DATA) {
|
||||||
int data_size;
|
int data_size;
|
||||||
int64_t metadata_size_pos = avio_tell(pb);
|
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?
|
// legacy FFmpeg magic?
|
||||||
avio_w8(pb, AMF_DATA_TYPE_STRING);
|
avio_w8(pb, AMF_DATA_TYPE_STRING);
|
||||||
put_amf_string(pb, "onTextData");
|
put_amf_string(pb, "onTextData");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user