store extradata, vorbis in avi works now, dont expect av sync though

Originally committed as revision 2962 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 21 years ago
parent 2926db54ba
commit 6748046eaa
  1. 7
      libavformat/wav.c

@ -105,8 +105,11 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
put_le16(pb, 2); /* wav_extra_size */ put_le16(pb, 2); /* wav_extra_size */
hdrsize += 2; hdrsize += 2;
put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */ put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */
} else } else {
put_le16(pb, 0); /* wav_extra_size */ put_le16(pb, enc->extradata_size);
put_buffer(pb, enc->extradata, enc->extradata_size);
hdrsize += enc->extradata_size;
}
return hdrsize; return hdrsize;
} }

Loading…
Cancel
Save