diff pva.c @ 4903:0b5471a1f061 libavformat

avoid possibly uninitialized return value (found by clang static analyzer)
author ivo
date Thu, 23 Apr 2009 18:44:03 +0000
parents 7a0230981402
children 72b7219c6337
line wrap: on
line diff
--- a/pva.c	Wed Apr 22 19:37:57 2009 +0000
+++ b/pva.c	Thu Apr 23 18:44:03 2009 +0000
@@ -176,7 +176,7 @@
     ByteIOContext *pb = s->pb;
     PVAContext *pvactx = s->priv_data;
     int length, streamid;
-    int64_t res;
+    int64_t res = AV_NOPTS_VALUE;
 
     pos_limit = FFMIN(*pos+PVA_MAX_PAYLOAD_LENGTH*8, (uint64_t)*pos+pos_limit);