Commit 12c1db38 authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2962 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fa9c4210
......@@ -105,8 +105,11 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
put_le16(pb, 2); /* wav_extra_size */
hdrsize += 2;
put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */
} else
put_le16(pb, 0); /* wav_extra_size */
} else {
put_le16(pb, enc->extradata_size);
put_buffer(pb, enc->extradata, enc->extradata_size);
hdrsize += enc->extradata_size;
}
return hdrsize;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment