[FFmpeg-devel] [PATCH]lavf/aiffenc: Write extradata also for qcelp.

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Sep 29 18:38:26 EEST 2016


Hi!

Attached patch fixes ticket #4009.

Please comment, Carl Eugen
-------------- next part --------------
From 6dd591f72775785dfd8e3109aa0933c0017dc843 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Thu, 29 Sep 2016 17:31:16 +0200
Subject: [PATCH] lavf/aiffenc: Write extradata also for qcelp.

Fixes ticket #4009.
---
 libavformat/aiffenc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c
index d876997..74b778b 100644
--- a/libavformat/aiffenc.c
+++ b/libavformat/aiffenc.c
@@ -185,7 +185,8 @@ static int aiff_write_header(AVFormatContext *s)
         avio_wb16(pb, 0);
     }
 
-    if (par->codec_tag == MKTAG('Q','D','M','2') && par->extradata_size) {
+    if (  (par->codec_tag == MKTAG('Q','D','M','2')
+        || par->codec_tag == MKTAG('Q','c','l','p')) && par->extradata_size) {
         ffio_wfourcc(pb, "wave");
         avio_wb32(pb, par->extradata_size);
         avio_write(pb, par->extradata, par->extradata_size);
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list