[FFmpeg-devel] MOV: Fix old-style muxed raw-audio data

Alex Sukhanov alx.sukhanov at gmail.com
Tue May 21 21:42:19 CEST 2013


Hi ffmpeg-devel,

I found that commit
http://ffmpeg.org/pipermail/ffmpeg-cvslog/2012-March/048842.html
breaks MOV demuxing in case if input file has PCM audio inside and wrong
STSZ sample_size for this audio trak.

I have a file which I successfully transcoded with ffmpeg before this patch:

Audio trak is PCM signed 16 LE.
Timescale = 48000
num_channels = 2
bits_per_sample = 16

Each sample duration = 1, so Each sample size should be = num_channels *
bits_per_sample / 8 * duration = 4 bytes
But STSZ wrongly has sample_size = 1 byte.

Before this patch
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50059bde77674977d9134f3c1151a63cb7a2391c
ffmpeg was able to fix this stream error and decode audio successfully.

Please advice here.


More information about the ffmpeg-devel mailing list