diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-02 03:57:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-02 03:58:54 +0200 |
commit | 8cde94ec0db0d033a265745444803ea8729de99c (patch) | |
tree | d6bacdfe28cdf12fa5490a71720dbc71c7619d30 /libavformat | |
parent | 5dd4e644f3f3608016885d0023d74c832119fd5b (diff) | |
download | ffmpeg-8cde94ec0db0d033a265745444803ea8729de99c.tar.gz |
avformat/flvenc: fix codec_id_text check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 1534667c6d..31a5c9ea11 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -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"); |