changeset 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 5914a1aa7869
children 1e692b6d434b
files pva.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);