From 58d7dde081d1aef2cfa79c3675c54023371d1060 Mon Sep 17 00:00:00 2001 From: James Almer Date: Wed, 24 Jun 2015 14:16:41 -0300 Subject: brstm: fix use of uninitialized variables Fixes valgrind complaining about "Conditional jump or move depends on uninitialised value(s)" Signed-off-by: James Almer --- libavformat/brstm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/brstm.c') diff --git a/libavformat/brstm.c b/libavformat/brstm.c index 1d190c9720..b6108e3ec8 100644 --- a/libavformat/brstm.c +++ b/libavformat/brstm.c @@ -327,7 +327,7 @@ static int read_header(AVFormatContext *s) b->data_start = avio_tell(s->pb); - if ((major != 1 || minor) && !bfstm) + if (!bfstm && (major != 1 || minor)) avpriv_request_sample(s, "Version %d.%d", major, minor); return 0; -- cgit v1.2.3