[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
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
ffmpeg was able to fix this stream error and decode audio successfully.

Please advice here.

More information about the ffmpeg-devel mailing list