Advertisement
Guest User

hlsdemux getting IV for sequence number bug solution

a guest
May 22nd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. From 43455d929329b81c0df60db8ddadacb3c1954b02 Mon Sep 17 00:00:00 2001
  2. From: Damian Ziobro <ziobro.damian@gmail.com>
  3. Date: Thu, 22 May 2014 11:54:40 +0100
  4. Subject: [PATCH] Repair saving IV key out of file->iv structure while IV is
  5. being get from media sequence number
  6.  
  7. ---
  8. ext/hls/m3u8.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10.  
  11. diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c
  12. index 5c7fd17..d129723 100644
  13. --- a/ext/hls/m3u8.c
  14. +++ b/ext/hls/m3u8.c
  15. @@ -350,7 +350,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
  16. memcpy (file->iv, iv, sizeof (iv));
  17. } else {
  18. guint8 *iv = file->iv + 12;
  19. - GST_WRITE_UINT32_BE (iv + 12, file->sequence);
  20. + GST_WRITE_UINT32_BE (iv, file->sequence);
  21. }
  22. }
  23.  
  24. --
  25. 1.9.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement