[FFmpeg-trac] #5941(undetermined:new): Dolby E corrupted when remuxed
FFmpeg
trac at avcodec.org
Thu Nov 17 14:50:27 EET 2016
#5941: Dolby E corrupted when remuxed
-------------------------------------+-------------------------------------
Reporter: leoenc | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by cehoyos):
Feel free to test the following small patches (independently and both) but
afaict, your wav file is invalid (it has no waveformatex header although
bpp>16) and this ticket is therefore unlikely to get fixed in FFmpeg
(unless one of the changes is sufficient).
{{{
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index a21d4c5..fa5f010 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -365,7 +365,7 @@ static int wav_write_header(AVFormatContext *s)
if (wav->write_peak != 2) {
/* info header */
- ff_riff_write_info(s);
+// ff_riff_write_info(s);
/* data header */
wav->data = ff_start_tag(pb, "data");
}}}
{{{
diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c
index c96329d..91b2fa7 100644
--- a/libavformat/riffenc.c
+++ b/libavformat/riffenc.c
@@ -76,6 +76,7 @@ int ff_put_wav_header(AVFormatContext *s, AVIOContext
*pb,
par->sample_rate > 48000 ||
par->codec_id == AV_CODEC_ID_EAC3 ||
av_get_bits_per_sample(par->codec_id) > 16;
+waveformatextensible=0;
if (waveformatextensible)
avio_wl16(pb, 0xfffe);
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5941#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list