avformat/utils: return pending IO error on EOF in av_read_frame()