mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
wavpackenc: Fix writing of MD5 sums and other metadata blocks
These don't have the FINAL_BLOCK flag set.
This commit is contained in:
parent
a22d61007a
commit
4f288a5234
1 changed files with 3 additions and 1 deletions
|
@ -590,7 +590,9 @@ gst_wavpack_enc_push_block (void *id, void *data, int32_t count)
|
||||||
enc->pending_offset = wph.block_index;
|
enc->pending_offset = wph.block_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(wph.flags & FINAL_BLOCK))
|
/* Is this the not-final block of multi-channel data? If so, just
|
||||||
|
* accumulate and return here. */
|
||||||
|
if (!(wph.flags & FINAL_BLOCK) && ((block[32] & ID_OPTIONAL_DATA) == 0))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
buffer = enc->pending_buffer;
|
buffer = enc->pending_buffer;
|
||||||
|
|
Loading…
Reference in a new issue