lavf/rtp: replace linked list with array