avformat/mov: merge mov_read_custom functions