Commit 675c8f10 authored by Mans Rullgard's avatar Mans Rullgard

mqbscan: exit if no sync found

parent 63f3864a
......@@ -192,10 +192,9 @@ int main(int argc, char **argv)
init_bits(&fb);
fb.fill_bits = fill_bits_mqb;
find_sync(&br, MQB_MARKER, 56, 1024);
for (;;)
print_mqb_frame(&fb);
if (!find_sync(&br, MQB_MARKER, 56, 1024))
for (;;)
print_mqb_frame(&fb);
}
sf_close(file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment