avformat/paf: Fix integer overflow and out of array read