[vlc-commits] test: hxxx: fix potentially uninitialized variable warnings
Alexandre Janniaux
git at videolan.org
Thu Nov 7 11:16:21 CET 2019
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Sat Oct 26 14:09:51 2019 +0200| [608f45c97bc56a2988f23a255153e63d4b28551f] | committer: Thomas Guillem
test: hxxx: fix potentially uninitialized variable warnings
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=608f45c97bc56a2988f23a255153e63d4b28551f
---
test/modules/packetizer/hxxx.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/modules/packetizer/hxxx.c b/test/modules/packetizer/hxxx.c
index 6a7767570f..8cae9bfd86 100644
--- a/test/modules/packetizer/hxxx.c
+++ b/test/modules/packetizer/hxxx.c
@@ -62,6 +62,10 @@ static void test_iterators( const uint8_t *p_ab, size_t i_ab, /* AnnexB */
int i_nal = 0;
while(b1 && b2)
{
+ /* hxxx_*_iterate_next can potentially not set these pointers. */
+ p_start_ab = NULL;
+ p_start_prefix = NULL;
+
b1 = hxxx_annexb_iterate_next( &it_ab, &p_start_ab, &i_size_ab );
b2 = hxxx_iterate_next( &it_prefix, &p_start_prefix, &i_size_prefix );
printf("NAL %d ", i_nal++);
More information about the vlc-commits
mailing list