[vlc-devel] commit: Fixed uninitialized i_samples in block_t. (Laurent Aimar )

git version control git at videolan.org
Tue Sep 1 21:34:19 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Sep  1 21:14:27 2009 +0200| [bb7add17a766810822e09c382a9d53a0c7dbfda7] | committer: Laurent Aimar 

Fixed uninitialized i_samples in block_t.

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

 src/misc/block.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/misc/block.c b/src/misc/block.c
index 815d3e8..9ffc673 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -64,6 +64,7 @@ void block_Init( block_t *restrict b, void *buf, size_t size )
     b->i_dts = VLC_TS_INVALID;
     b->i_length = 0;
     b->i_rate = 0;
+    b->i_samples = 0;
     b->p_buffer = buf;
     b->i_buffer = size;
 #ifndef NDEBUG




More information about the vlc-devel mailing list