avconv: fix handling attachments in init_output_stream