movdec: Set frame_size for AMR
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 3 Nov 2011 19:20:58 +0000 (20:20 +0100)
committerMartin Storsjö <martin@martin.st>
Sat, 5 Nov 2011 14:30:18 +0000 (16:30 +0200)
commit237f13290bcc1c69cf103dede7f546a2a0706b5c
tree87c40bc0983a44d3aca56347a93cb2cffe067160
parent717401aff226f02105e066c9530711445bf1844c
movdec: Set frame_size for AMR

Earlier, sc->samples_per_frame was used for setting the frame size,
but all files don't have that set properly. The frame size is a
known constant for these codecs.

If frame_size isn't set, the mov/3gp muxer refuses to mux it.

This fixes stream copy of audio from
https://roundup.libav.org/file1248/Video_With_AMR-NB_Audio.3gp
to another 3gp file (roundup issue 2468).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov.c