[vlc-commits] access: live555: flag truncated/corrupted blocks

Francois Cartegnie git at videolan.org
Sat May 20 13:55:57 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat May 20 11:40:10 2017 +0200| [b9e304fcf83daa28ce6936cb79915e134a8bf6cb] | committer: Francois Cartegnie

access: live555: flag truncated/corrupted blocks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9e304fcf83daa28ce6936cb79915e134a8bf6cb
---

 modules/access/live555.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 1c7a9ad765..ef98aa4c44 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -2068,6 +2068,9 @@ static void StreamRead( void *p_private, unsigned int i_size,
                         break;
                 }
 
+                if( i_truncated_bytes )
+                    p_block->i_flags |= BLOCK_FLAG_CORRUPTED;
+
                 if( unlikely(tk->i_next_block_flags) )
                 {
                     p_block->i_flags |= tk->i_next_block_flags;



More information about the vlc-commits mailing list