fix source stream, source_index is refering to fmt_in, needs testing