[FFmpeg-devel] [PATCH]Allow mov muxing without the ac3 parser
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Dec 9 16:37:08 CET 2014
Hi!
A user reported a regression that the mov muxer does not work anymore
if you fear Dolby codecs.
Attached patch reverts 8091fe30 and fixes the issue differently.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/configure b/configure
index 8006f3b..c510ee4 100755
--- a/configure
+++ b/configure
@@ -2435,7 +2435,7 @@ matroska_muxer_select="riffenc"
mmf_muxer_select="riffenc"
mov_demuxer_select="riffdec"
mov_demuxer_suggest="zlib"
-mov_muxer_select="riffenc rtpenc_chain ac3_parser"
+mov_muxer_select="riffenc rtpenc_chain"
mp3_demuxer_select="mpegaudio_parser"
mp4_muxer_select="mov_muxer"
mpegts_muxer_select="adts_muxer latm_muxer"
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 2321748..9445417 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -4009,7 +4009,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
} else {
size = ff_hevc_annexb2mp4(pb, pkt->data, pkt->size, 0, NULL);
}
- } else if (enc->codec_id == AV_CODEC_ID_EAC3) {
+ } else if (CONFIG_AC3_PARSER && enc->codec_id == AV_CODEC_ID_EAC3) {
size = handle_eac3(mov, pkt, trk);
if (size < 0)
return size;
More information about the ffmpeg-devel
mailing list