avformat/rl2: Fix DoS due to lack of eof check