mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
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:
parent
95f5ae4b59
commit
dd697e5a49
@ -1,5 +1,9 @@
|
|||||||
2005-04-07 Moritz Bunkus <moritz@bunkus.org>
|
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
|
* mkvmerge: bug fix: RealMedia files contain a "FPS" field in
|
||||||
their track headers. Unfortunately this field does not always
|
their track headers. Unfortunately this field does not always
|
||||||
contain the actual FPS of a video track but the maximum number of
|
contain the actual FPS of a video track but the maximum number of
|
||||||
|
@ -211,5 +211,12 @@ xtr_wavpack4_c::handle_block(KaxBlock &block,
|
|||||||
|
|
||||||
void
|
void
|
||||||
xtr_wavpack4_c::finish_file() {
|
xtr_wavpack4_c::finish_file() {
|
||||||
delete corr_out;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
|
|
||||||
class xtr_wavpack4_c: public xtr_base_c {
|
class xtr_wavpack4_c: public xtr_base_c {
|
||||||
public:
|
public:
|
||||||
uint64_t number_of_samples;
|
uint32_t number_of_samples;
|
||||||
int extract_blockadd_level;
|
int extract_blockadd_level;
|
||||||
binary version[2];
|
binary version[2];
|
||||||
mm_file_io_c *corr_out;
|
mm_file_io_c *corr_out;
|
||||||
|
Loading…
Reference in New Issue
Block a user