[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-cvs
Subject:    gst-plugins-good: wavpackenc: Fix writing of MD5 sums and other metadata blocks
From:       slomo () kemper ! freedesktop ! org (Sebastian Dröge)
Date:       2013-10-31 18:16:30
Message-ID: 20131031181630.EBDE676562 () kemper ! freedesktop ! org
[Download RAW message or body]

Module: gst-plugins-good
Branch: master
Commit: 4f288a52344eee6c642e32d3877d72aafc6b9d0a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=4f288a52344eee6c642e32d3877d72aafc6b9d0a


Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Thu Oct 31 19:15:12 2013 +0100

wavpackenc: Fix writing of MD5 sums and other metadata blocks

These don't have the FINAL_BLOCK flag set.

---

 ext/wavpack/gstwavpackenc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ext/wavpack/gstwavpackenc.c b/ext/wavpack/gstwavpackenc.c
index eccafa1..cb69739 100644
--- a/ext/wavpack/gstwavpackenc.c
+++ b/ext/wavpack/gstwavpackenc.c
@@ -590,7 +590,9 @@ gst_wavpack_enc_push_block (void *id, void *data, int32_t count)
         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;
 
       buffer = enc->pending_buffer;



_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic