lavf: simplify handling of offset in av_probe_input_buuffer()
lavf: use a fixed width type

It's shorter and more consistent with the rest of the code.
lavf: make av_probe_input_buffer more robust

Always use the actually read size as the offset instead of making
possibly invalid assumptions.

Addresses: CVE-2012-6618