brstm: fix use of uninitialized variables

Fixes valgrind complaining about "Conditional jump or move depends on uninitialised value(s)"

Signed-off-by: James Almer <jamrial@gmail.com>
pull/138/head
James Almer 10 years ago
parent d7e224ec24
commit 58d7dde081
  1. 2
      libavformat/brstm.c

@ -327,7 +327,7 @@ static int read_header(AVFormatContext *s)
b->data_start = avio_tell(s->pb); 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); avpriv_request_sample(s, "Version %d.%d", major, minor);
return 0; return 0;

Loading…
Cancel
Save