[FFmpeg-devel] [PATCH] sbgdec: avoid 'warning: rel_ts may be used uninitialized in this function [-Wmaybe-uninitialized]'
Michael Niedermayer
michaelni at gmx.at
Fri Dec 28 17:21:50 CET 2012
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/sbgdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index 30c3b49..5ad31e1 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -462,6 +462,8 @@ static int parse_timestamp(struct sbg_parser *p,
char type = 0;
int r;
+ *rrel = 0;
+
if (lex_fixed(p, "NOW", 3)) {
type = 'N';
r = 1;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list