aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-08-07 14:15:05 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-08-07 14:15:05 +0000
commit80f05e7981a2ed7d22bd2ef57d0063191edd432b (patch)
tree68c8185cd2a1a20c52b6a371c4f74e7160ccdd2e /libavformat
parent86ca5710bb8eae3cf1e88a26e59f16c7f4afd7eb (diff)
downloadffmpeg-80f05e7981a2ed7d22bd2ef57d0063191edd432b.tar.gz
sampleSize field to 16, reserved for mp4 and 3gp
Originally committed as revision 5948 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 2f7cb7fe8f..1471c6648d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -361,9 +361,8 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
put_be32(pb, 0); /* Reserved */
put_be16(pb, track->mode == MODE_MOV ? track->enc->channels : 2); /* Number of channels */
- /* TODO: Currently hard-coded to 16-bit, there doesn't seem
- to be a good way to get number of bits of audio */
- put_be16(pb, 0x10); /* Reserved */
+ /* FIXME 8 bit for 'raw ' in mov */
+ put_be16(pb, 16); /* Reserved */
put_be16(pb, vbr ? 0xfffe : 0); /* compression ID */
put_be16(pb, 0); /* packet size (= 0) */