release AVIOContext correctly.

issue 148
format_context.iformat not null if open a new 1, subtitle crash