Update the "number of samples in this file" header field upon extraction of WAVPACK data. Patch by Steve Lhomme (steve ! lhomme () free ! fr).

This commit is contained in:
Moritz Bunkus 2005-04-07 17:15:31 +00:00
parent 95f5ae4b59
commit dd697e5a49
3 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2005-04-07 Moritz Bunkus <moritz@bunkus.org>
* mkvextract: bug fix: WAVPACK extraction did not update the
"number of samples" header field. Patch by Steve Lhomme (see
AUTHORS).
* mkvmerge: bug fix: RealMedia files contain a "FPS" field in
their track headers. Unfortunately this field does not always
contain the actual FPS of a video track but the maximum number of

View File

@ -211,5 +211,12 @@ xtr_wavpack4_c::handle_block(KaxBlock &block,
void
xtr_wavpack4_c::finish_file() {
out->setFilePointer(12);
out->write_uint32_le(number_of_samples);
if (NULL != corr_out) {
corr_out->setFilePointer(12);
corr_out->write_uint32_le(number_of_samples);
delete corr_out;
}
}

View File

@ -32,7 +32,7 @@ public:
class xtr_wavpack4_c: public xtr_base_c {
public:
uint64_t number_of_samples;
uint32_t number_of_samples;
int extract_blockadd_level;
binary version[2];
mm_file_io_c *corr_out;