lavf: move internal fields from public to internal context