[FFmpeg-cvslog] avformat/flvenc: fix codec_id_text check
Michael Niedermayer
git at videolan.org
Thu Oct 2 04:10:41 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 2 03:57:50 2014 +0200| [8cde94ec0db0d033a265745444803ea8729de99c] | committer: Michael Niedermayer
avformat/flvenc: fix codec_id_text check
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8cde94ec0db0d033a265745444803ea8729de99c
---
libavformat/flvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 1534667..31a5c9e 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");
More information about the ffmpeg-cvslog
mailing list