]> git.sesse.net Git - ffmpeg/commit
MOV: Fix old-style muxed raw-audio data.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 25 Mar 2012 12:13:23 +0000 (14:13 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 31 Mar 2012 10:37:42 +0000 (12:37 +0200)
commit50059bde77674977d9134f3c1151a63cb7a2391c
treee377c737057e3aed78a00a6613ddd920a6fd9d1e
parente0ad7f74c762fb303b1374bb53865c5639649b29
MOV: Fix old-style muxed raw-audio data.

This patch fixes the sample from trac issue #522.
The issue is that the mov demuxer insists on using its
calculated sample_size (which is nonsense for old-style tracks)
instead of the one encoded in the track.
The old raw audio code should be using the value in stsz, because
the size of a single sample never makes sense for the size of
a full audio packet, whereas the new code will multiply the
sample size by the chunk size, so it should use the calculated value.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/isom.h
libavformat/mov.c