lavf/ffm: use AVOption API to store/restore stream properties